package
0.5.1
Repository: https://github.com/opensourceways/mirrorbits.git
Documentation: pkg.go.dev

# Functions

ExtractRemoteIP extracts the remote IP from an X-Forwarded-For header.
LookupMirrorIP returns the IP address of a mirror and returns an error if the DNS has more than one address.
NewClusterLock returns a new instance of a ClusterLock.
NewGeoIP instanciates a new instance of GeoIP.
RemoteIPFromAddr removes the port from a remote address (x.x.x.x:yyyy).

# Variables

ErrMultipleAddresses is returned when the mirror has more than one address.

# Structs

ClusterLock holds the internal structure of a ClusterLock.
GeoIP contains methods to query the GeoIP database.
GeoIPError holds errors while loading the different databases.
GeoIPRecord defines a GeoIP record for a given IP address.

# Interfaces

Geolocalizer is an interface representing a GeoIP library.