mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 20:58:00 +00:00
httpcache.Cacher gains: - Username/Password: Basic Auth, stripped before following redirects - MaxAge: skip HTTP if local file mtime is within this duration - MinInterval: skip HTTP if last Fetch attempt was within this duration - Transform: post-process response body (e.g. extract .mmdb from tar.gz) geoip.Downloader now builds an httpcache.Cacher via NewCacher(), removing its own HTTP client. ExtractMMDB is now exported for use as a Transform. check-ip-blacklist renamed to check-ip; adds -city-db / -asn-db flags for GeoLite2 lookup (country, city, subdivision, ASN) printed after each blocklist result.
10 lines
214 B
Modula-2
10 lines
214 B
Modula-2
module github.com/therootcompany/golib
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/oschwald/geoip2-golang v1.13.0 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
|
|
golang.org/x/sys v0.20.0 // indirect
|
|
)
|