Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountryCode ¶
type CountryCode struct {
// contains filtered or unexported fields
}
CountryCode define a ISO 3166-1 alpha-2 country code.
type Service ¶
type Service interface {
FindCountryCodeForIP(ip string) CountryCode
}
Service define a service responsible of geolocating IP addresses.
func ProvideMmdbService ¶
func ProvideMmdbService( logger zerolog.Logger, promRegistry *prometheus.Registry, ) Service
ProvideMmdbService is a wire provider for mmdb based ip geolocator service.
Click to show internal directories.
Click to hide internal directories.