Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupProvider ¶
type LookupProvider interface { // Lookup takes an IPv4 or IPv6 IP address and returns a country code. If the lookup fails it must return the code // "XX". Lookup(remoteAddr net.IP) (countryCode string) }
LookupProvider is an interface for all IP to country code providers.
Click to show internal directories.
Click to hide internal directories.