Releases: whitebyte0/gomiddleware
Releases · whitebyte0/gomiddleware
v0.1.0 — Initial Release
Middleware package for Go + Gin.
Components
- security — Security headers (CSP, HSTS, X-Frame-Options, etc.)
- recovery — Panic recovery with full request logging
- cors — CORS with dev/prod presets
- ratelimit — Token bucket rate limiting (IP, user, custom key)
- password — Bcrypt + Argon2id password hashing
- jwt — JWT generate, validate, refresh, revoke with token versioning
- session — GORM-backed sessions with sliding window expiration
- auth — Bearer token auth middleware with context helpers
- audit — Async request audit logging with body capture
Dependencies
- gin-gonic/gin
- golang-jwt/jwt/v5
- golang.org/x/time/rate
- golang.org/x/crypto
- alexedwards/argon2id
- gorm.io/gorm