Documentation ¶
Index ¶
- func NewMaxmindGeoIPResolver(opts ...Option) (networkd.IPResolver, error)
- type Option
- func WithASNDatabase(path string) Option
- func WithCityDatabase(path string) Option
- func WithConnectionTypeDatabase(path string) Option
- func WithCountryDatabase(path string) Option
- func WithDomainDatabase(path string) Option
- func WithEnterpriseDatabase(path string) Option
- func WithISPDatabase(path string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMaxmindGeoIPResolver ¶
func NewMaxmindGeoIPResolver(opts ...Option) (networkd.IPResolver, error)
NewMaxmindGeoIPResolver returns a new IPResolver that uses the Maxmind GeoIP databases.
Types ¶
type Option ¶
type Option func(m *maxmindGeoIPResolver) error
Option is a functional option for configuring the Maxmind GeoIP resolver.
func WithASNDatabase ¶
WithASNDatabase loads the ASN database from the given path.
func WithCityDatabase ¶
WithCityDatabase loads the city database from the given path.
func WithConnectionTypeDatabase ¶
WithConnectionTypeDatabase loads the Connection-Type database from the given path.
func WithCountryDatabase ¶
WithCountryDatabase loads the country database from the given path.
func WithDomainDatabase ¶
WithDomainDatabase loads the Domain database from the given path.
func WithEnterpriseDatabase ¶
WithEnterpriseDatabase loads the Enterprise database from the given path.
func WithISPDatabase ¶
WithISPDatabase loads the ISP database from the given path.
Click to show internal directories.
Click to hide internal directories.