Versions in this module Expand all Collapse all v0 v0.0.2 Apr 7, 2026 v0.0.1 Apr 2, 2026 Changes in this version + const RouteBackup + const RouteDelete + const RouteGet + const RouteList + const RouteLock + const RouteRotate + const RouteRotateSalt + const RouteSet + const RouteStatus + const RouteUnlock + func Mount(mux *http.ServeMux, store *keeper.Keeper, opts ...Option) + type AfterFunc func(r *http.Request, status int, body []byte) + type BeforeFunc func(w http.ResponseWriter, r *http.Request) (allow bool, err error) + type GuardFunc func(w http.ResponseWriter, r *http.Request, route string) bool + type Hook struct + After AfterFunc + Before BeforeFunc + CaptureBody bool + Route string + type Option func(*config) + func WithEncoder(enc ResponseEncoder) Option + func WithGuard(fn GuardFunc) Option + func WithHooks(hooks ...Hook) Option + func WithLogger(l logger) Option + func WithPrefix(prefix string) Option + func WithRoutes(fn func(mux *http.ServeMux)) Option + type ResponseEncoder func(w http.ResponseWriter, route string, status int, data any)