GeoIPConfig is the structure configuring the GeoIP lookup process.
| 27 | |
| 28 | // GeoIPConfig is the structure configuring the GeoIP lookup process. |
| 29 | type GeoIPConfig struct { |
| 30 | Provider GeoIPProvider `yaml:"provider" json:"provider" default:"dummy"` |
| 31 | GeoIP2File string `yaml:"maxmind-geoip2-file" json:"maxmind-geoip2-file" default:"/var/lib/GeoIP/GeoIP2-Country.mmdb"` |
| 32 | } |
| 33 | |
| 34 | // Validate checks the configuration. |
| 35 | func (config GeoIPConfig) Validate() error { |
nothing calls this directly
no outgoing calls
no test coverage detected