Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeoIpLiteRepository

Repository which fetches ip locations from geoip-lite local database.
When using this repository, please take care to update your local geoip database.

Hierarchy

  • GeoIpLiteRepository

Implements

Constructors

Accessors

Methods

Constructors

constructor

Accessors

available

  • get available(): boolean

id

  • get id(): string

weight

  • get weight(): number

Methods

lookup

Static refresh

  • refresh(): Promise<void>
  • Refresh in-memory database which contains geoip-lite locations.

    CAUTION!
    This needs to be called after updating local geoip-lite db.

    Returns Promise<void>