Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IpLocationsRepository

Repository of IP address locations.

Hierarchy

  • IpLocationsRepository

Implemented by

Properties

Methods

Properties

Readonly available

available: boolean

Whether repository is available to serve lookup requests.

Readonly id

id: string

Repository id.

Readonly weight

weight: number

Repository weight.
Used by weighted round robin algorithm.

Methods

lookup

  • Lookup location of the ip address.

    Parameters

    • ip: string

      IP address.

    Returns Promise<null | IpLocation>

    Location of ip address.