package
0.5.9
Repository: https://github.com/kusionstack/karpor.git
Documentation: pkg.go.dev

# Functions

APILogger is a middleware that injects a logger, configured with a request ID, into the request context for use throughout the request's lifecycle.
DefaultLogger is a middleware that provides basic request logging using chi's built-in Logger middleware.
GetStartTime returns the start time from the given context if one is present.
ReadOnlyMode disallows non-GET requests in read-only mode.
Timing is a middleware that captures the current time at the start of a request and stores it in the request context.

# Variables

APILoggerKey is a context key used for associating a logger with a request.
StartTimeKey is a context key used for storing the start time of a request.