MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / GeoIPConfig

Struct GeoIPConfig

config/geoip.go:29–32  ·  view source on GitHub ↗

GeoIPConfig is the structure configuring the GeoIP lookup process.

Source from the content-addressed store, hash-verified

27
28// GeoIPConfig is the structure configuring the GeoIP lookup process.
29type 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.
35func (config GeoIPConfig) Validate() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected