Interface MmdbLookupResult<E>

Represents the result of a lookup in a MaxMind DB file.

Type Parameters

Hierarchy

  • MmdbLookupResult

Accessors

Accessors

  • get netmask(): number
  • Gets the netmask of the record found in the database.

    For example, if you look up the address 1.1.1.1 in an IPv4 database and the returned netmask is 16, then the address is part of the 1.1.0.0/16 subnet in the database.

    Returns number

  • get entry(): E
  • Gets the entry found in the database; or undefined if no entry was found.

    Returns E

Generated using TypeDoc