# Functions
APILoggerMiddleware 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.
No description provided by the author
GetStartTime returns the start time from the given context if one is present.
GetTraceID returns a trace ID from the given context if one is present.
GetUserID returns a user ID from the given context if one is present.
No description provided by the author
NextTraceID generates the next trace ID in the sequence.
ReadOnlyMode disallows non-GET requests in read-only mode.
No description provided by the author
Timing is a middleware that captures the current time at the start of a request and stores it in the request context.
This is the middleware function that verifies the JWT against a JWKS KeyMap.
TraceID is a middleware that injects a trace ID into the context of each request.
UserID is a middleware that injects the operator of the request into the context of each request.
# Constants
TraceIDKey and UserIDKey are the keys that hold the unique trace ID and user ID in a request context.
TraceIDKey and UserIDKey are the keys that hold the unique trace ID and user ID in a 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.
TraceIDHeader and UserIDHeader is the name of the HTTP Header which contains the trace id and user id.
TraceIDHeader and UserIDHeader is the name of the HTTP Header which contains the trace id and user id.