Documentation
¶
Index ¶
- func CORS(allowedOrigins []string, next http.Handler) http.Handler
- func CorrelationID(next http.Handler) http.Handler
- func CorrelationIDFromContext(ctx context.Context) string
- func ErrorPersistence(logger *slog.Logger, store errstore.Store, next http.Handler) http.Handler
- func OnlyMethods(methods ...string) func(http.Handler) http.Handler
- func Recovery(logger *slog.Logger, next http.Handler) http.Handler
- func RequestLogger(logger *slog.Logger, next http.Handler) http.Handler
- func SecurityHeaders(next http.Handler) http.Handler
- func WriteError(w http.ResponseWriter, r *http.Request, status int, code, message string)
- func WriteJSON(w http.ResponseWriter, status int, payload any)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorPersistence ¶
func WriteError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.