mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
Rewrite from feat-formmailer WIP: - Blacklist is *dataset.View[ipcohort.Cohort] — caller wires dataset group - http.Handler via ServeHTTP — drop-in for any mux - SuccessBody/ErrorBody []byte — caller loads files; no file I/O per request - Rate limiter per-instance (sync.Once init), not global - Fields configurable (default standard names, not GravityForms input_N) - AllowedCountries []string for geo-blocking via iploc (nil = allow all) - ContainsAddr used directly (pre-parsed netip.Addr, no re-parse) - No Init()/Run() — caller drives dataset lifecycle - Fix getErrorBotty typo; expose support email only to legitimate errors
12 lines
304 B
Modula-2
12 lines
304 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
|
|
github.com/phuslu/iploc v1.0.20260415 // indirect
|
|
golang.org/x/sys v0.20.0 // indirect
|
|
golang.org/x/time v0.15.0 // indirect
|
|
)
|