mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
Ties gitshallow, httpcache, geoip, ipcohort, and sync/dataset together into a single tool that resolves an IP against the configured blocklist and GeoIP databases, with optional --serve mode for production use. Flags: --git, --blocklist, --whitelist, --geoip-conf, --serve, --async-load, --format pretty|json, plus -V/--version and help. Includes /healthz, http.Server timeouts, and stage-timing logs to stderr.
19 lines
544 B
Modula-2
19 lines
544 B
Modula-2
module github.com/therootcompany/golib/cmd/check-ip
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/therootcompany/golib/net/geoip v0.5.0
|
|
github.com/therootcompany/golib/net/gitshallow v0.9.1
|
|
github.com/therootcompany/golib/net/httpcache v0.5.0
|
|
github.com/therootcompany/golib/net/ipcohort v0.9.0
|
|
github.com/therootcompany/golib/sync/dataset v0.5.0
|
|
)
|
|
|
|
require (
|
|
github.com/oschwald/geoip2-golang v1.13.0 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
|
|
golang.org/x/sync v0.20.0 // indirect
|
|
golang.org/x/sys v0.45.0 // indirect
|
|
)
|