Documentation
¶
Index ¶
- Constants
- func NewMaxmindDB(ctx context.Context, _ adapter.Core, logger log.Logger, tag string, args any) (adapter.PluginMatcher, error)
- type Args
- type Country
- type MaxmindDB
- func (m *MaxmindDB) APIHandler() chi.Router
- func (m *MaxmindDB) Close() error
- func (m *MaxmindDB) LoadRunningArgs(_ context.Context, args any) (uint16, error)
- func (m *MaxmindDB) Match(ctx context.Context, dnsCtx *adapter.DNSContext, argsID uint16) (bool, error)
- func (m *MaxmindDB) Start() error
- func (m *MaxmindDB) Tag() string
- func (m *MaxmindDB) Type() string
- type Reader
Constants ¶
View Source
const Type = "maxminddb"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Country ¶
type Country struct { Continent struct { Names map[string]string `maxminddb:"names"` Code string `maxminddb:"code"` GeoNameID uint `maxminddb:"geoname_id"` } `maxminddb:"continent"` Country struct { Names map[string]string `maxminddb:"names"` IsoCode string `maxminddb:"iso_code"` GeoNameID uint `maxminddb:"geoname_id"` IsInEuropeanUnion bool `maxminddb:"is_in_european_union"` } `maxminddb:"country"` RegisteredCountry struct { Names map[string]string `maxminddb:"names"` IsoCode string `maxminddb:"iso_code"` GeoNameID uint `maxminddb:"geoname_id"` IsInEuropeanUnion bool `maxminddb:"is_in_european_union"` } `maxminddb:"registered_country"` RepresentedCountry struct { Names map[string]string `maxminddb:"names"` IsoCode string `maxminddb:"iso_code"` Type string `maxminddb:"type"` GeoNameID uint `maxminddb:"geoname_id"` IsInEuropeanUnion bool `maxminddb:"is_in_european_union"` } `maxminddb:"represented_country"` Traits struct { IsAnonymousProxy bool `maxminddb:"is_anonymous_proxy"` IsSatelliteProvider bool `maxminddb:"is_satellite_provider"` } `maxminddb:"traits"` }
type MaxmindDB ¶
type MaxmindDB struct {
// contains filtered or unexported fields
}
func (*MaxmindDB) APIHandler ¶
func (m *MaxmindDB) APIHandler() chi.Router
func (*MaxmindDB) LoadRunningArgs ¶
Click to show internal directories.
Click to hide internal directories.