geoipprovider

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL