Documentation ¶
Index ¶
- func AttachBuildInfo(next http.Handler) http.Handler
- func AttachRequestID(next http.Handler) http.Handler
- func Logger(log slog.Logger) func(next http.Handler) http.Handler
- func RateLimitPerMinute(count int) func(http.Handler) http.Handler
- func Recover(log slog.Logger) func(h http.Handler) http.Handler
- func RequestID(r *http.Request) uuid.UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachBuildInfo ¶
AttachBuildInfo adds a build info header to each HTTP request.
func AttachRequestID ¶
AttachRequestID adds a request ID to each HTTP request.
func RateLimitPerMinute ¶
RateLimitPerMinute returns a handler that limits requests per-minute based on IP and endpoint.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.