Documentation
¶
Index ¶
- Variables
- func ApplyMiddleware(logger *log.Logger, handler http.Handler) http.Handler
- func CORS() func(http.Handler) http.Handler
- func Logging(logger *log.Logger) func(http.Handler) http.Handler
- func Recovery() func(http.Handler) http.Handler
- func SetLoggingMetadata(ctx context.Context, key string, value any)
- type LoggingMetadata
- type LoggingMetadataKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogErrKey = "error" PanicErrKey = "panic" )
Functions ¶
func ApplyMiddleware ¶
ApplyMiddleware wraps a handler with the default middleware stack.
Types ¶
type LoggingMetadata ¶
func GetLoggingMetadata ¶
func GetLoggingMetadata(ctx context.Context) LoggingMetadata
type LoggingMetadataKey ¶
type LoggingMetadataKey struct{}
Click to show internal directories.
Click to hide internal directories.