mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
Conditional GET cache for periodic data sources. Persists ETag and Last-Modified to a .meta sidecar so 304s survive process restarts. Two independent rate-limit gates (MaxAge file-mtime, MinInterval in-memory). Body cap via MaxBytes defends against fill-disk from a hostile upstream or redirect target. Authorization (and any caller-supplied) headers stripped on every redirect hop. Userinfo in URL is redacted from error messages.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%