Versions in this module Expand all Collapse all v0 v0.2.5 Nov 1, 2026 v0.2.4 Oct 31, 2026 Changes in this version + const AttemptLimit + const SessionCookie + func DecodeJSON(w http.ResponseWriter, r *http.Request, target any) bool + func IdentityError(w http.ResponseWriter, err error) + func Probes(database Pinger, next http.Handler) http.Handler + func Problem(w http.ResponseWriter, status int, detail string) + func SetSession(w http.ResponseWriter, secret string, expiry time.Time, insecure bool) + func Unauthorized(w http.ResponseWriter) + func Unsafe(method string) bool + func ValidCSRF(r *http.Request, expected string) bool + func WriteJSON(w http.ResponseWriter, status int, value any) + type Admission struct + func NewAdmission(attempts Attempts, header string) *Admission + func (admission *Admission) Admit(w http.ResponseWriter, r *http.Request) (func(), bool) + type Attempts interface + CountAuthAttempt func(ctx context.Context, client string, now time.Time, window time.Duration) (int, error) + type Pinger interface + Ping func(ctx context.Context) error