- Introduced GeoIP configuration options in config.example.yaml to enable geolocation lookups for the /api/agg/unique-ips endpoint. - Updated the aggregate handler to include optional GeoIP data in responses, enriching unique IP information with country and city details, as well as ASN data if available. - Enhanced documentation in AGGREGATE.md and README.md to reflect the new GeoIP functionality and its usage. - Added a dependency on the geoip2-golang library in go.mod for GeoIP lookups. - Modified tests to accommodate the new GeoIP integration in the aggregate handler.
10 lines
171 B
AMPL
10 lines
171 B
AMPL
module github.com/telemt/telemt-api
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
github.com/oschwald/geoip2-golang v1.11.0
|
|
github.com/prometheus/client_golang v1.20.5
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|