Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingDB indicates that one or more of the utility databases was not provided. The wrapped // error message should indicate which database was missing. ErrMissingDB = errors.New("missing one or more geoip DBs") )
View Source
var ( // ErrNoDatabasesProvided indicates that no databases were provided so we are going to return a // struct implementing the Database interface so stations that don't support geoip can still // operate normally. ErrNoDatabasesProvided = errors.New("no databases provided - using empty Geoip") )
Functions ¶
This section is empty.
Types ¶
type DBConfig ¶
type DBConfig struct { CCDBPath string `toml:"geoip_cc_db_path"` ASNDBPath string `toml:"geoip_asn_db_path"` }
DBConfig contains options used for GeoIP lookup - including paths to database files
type Database ¶
Database provides the minimal useful interface for looking up relevant information so we aren't tied tp the types / interface of a specific GeoIP library
type EmptyDatabase ¶
type EmptyDatabase struct { }
EmptyDatabase provides the Geoip functionality that we need using the MaxMind GeoIP service
Click to show internal directories.
Click to hide internal directories.