carlos / platform Public

geo: optional GeoIP locator; lookup errors logged as a fixed category (nearest-region §6.2, §6.5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 236bcfea03db06056466b7489f2e1b6b4d2cfea6 parent cc82bc0
11 files changed, +16427 −1
  • go.mod +4 −1
  • go.sum +2 −0
  • internal/geo/mmdb.go +106 −0
  • internal/geo/mmdb_test.go +114 −0
  • internal/geo/testdata/GeoIP2-City-Test.mmdb binary
  • internal/geo/testdata/GeoIP2-Country-Test.json +15978 −0
  • internal/geo/testdata/GeoIP2-Country-Test.mmdb binary
  • internal/geo/testdata/LICENSE-APACHE +202 −0
  • internal/geo/testdata/LICENSE-MIT +17 −0
  • internal/geo/testdata/MaxMind-DB-test-ipv4-24.mmdb binary
  • internal/geo/testdata/README +4 −0
go.mod

Loading diff…

go.sum

Loading diff…

internal/geo/mmdb.go

Loading diff…

internal/geo/mmdb_test.go

Loading diff…

internal/geo/testdata/GeoIP2-City-Test.mmdb

Loading diff…

internal/geo/testdata/GeoIP2-Country-Test.json

Loading diff…

internal/geo/testdata/GeoIP2-Country-Test.mmdb

Loading diff…

internal/geo/testdata/LICENSE-APACHE

Loading diff…

internal/geo/testdata/LICENSE-MIT

Loading diff…

internal/geo/testdata/MaxMind-DB-test-ipv4-24.mmdb

Loading diff…

internal/geo/testdata/README

Loading diff…