Class representing the ReaderModel *

Constructors

Properties

mmdbReader: Reader<any>

Methods

  • Returns the AnonymousIP db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the Anonymous IP db with

    Returns AnonymousIP

    Throws

    Throws an error when the DB doesn't support Anonymous IP queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Returns the ASN db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the ASN db with

    Returns Asn

    Throws

    Throws an error when the DB doesn't support ASN queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Returns the City db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the City db with

    Returns City

    Throws

    Throws an error when the DB doesn't support City queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Returns the Connection-Type db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the Connection-Type db with

    Returns ConnectionType

    Throws

    Throws an error when the DB doesn't support Connection-Type queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Returns the Country db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the Country db with

    Returns Country

    Throws

    Throws an error when the DB doesn't support City queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Returns the Domain db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the Domain db with

    Returns Domain

    Throws

    Throws an error when the DB doesn't support Domain queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Returns the Enterprise db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the Enterprise db with

    Returns City

    Throws

    Throws an error when the DB doesn't support Enterprise queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Parameters

    • dbType: string
    • ipAddress: string
    • fnName: string

    Returns any[]

  • Returns the ISP db data for an IP address

    Parameters

    • ipAddress: string

      The IP Address you want to query the ISP db with

    Returns Isp

    Throws

    Throws an error when the DB doesn't support ISP queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

  • Parameters

    • modelClass: any
    • dbType: string
    • ipAddress: string
    • fnName: string

    Returns any

Generated using TypeDoc