ipgeolocator

package
v0.18.0-beta07 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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.

func (CountryCode) String

func (cc CountryCode) String() string

String implements fmt.Stringer.

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.

Jump to

Keyboard shortcuts

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