proxy.golang.org : github.com/oschwald/maxminddb-golang/v2
Package maxminddb provides a reader for the MaxMind DB file format. This package provides an API for reading MaxMind GeoIP2 and GeoLite2 databases in the MaxMind DB file format (.mmdb files). The API is designed to be simple to use while providing high performance for IP geolocation lookups and related data. The most common use case is looking up geolocation data for an IP address: This library supports all MaxMind database types: For maximum performance in high-throughput applications, consider: For custom decoding logic, you can implement the mmdbdata.Unmarshaler interface, similar to how encoding/json's json.Unmarshaler works. Types implementing this interface will automatically use custom decoding logic when used with Reader.Lookup: You can iterate over all networks in a database: MaxMind provides both free (GeoLite2) and commercial (GeoIP2) databases: All Reader methods are thread-safe. The Reader can be safely shared across multiple goroutines.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/oschwald/maxminddb-golang/v2
Keywords:
geoip
, geoip2
, geolocation
, go
, ip-address
, maxmind
, maxmind-db
License: ISC
Latest release: 3 days ago
First release: 11 months ago
Namespace: github.com/oschwald/maxminddb-golang
Stars: 650 on GitHub
Forks: 105 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago