Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
Types ¶
type LoggingMiddleware ¶
type LoggingMiddleware struct {
// contains filtered or unexported fields
}
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(next http.Handler, logger *slog.Logger) *LoggingMiddleware
func (*LoggingMiddleware) ServeHTTP ¶
func (m *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RequestIdHandler ¶
func NewRequestIdHandler ¶
func NewRequestIdHandler(handler slog.Handler) *RequestIdHandler
type RequestIdMiddleware ¶
type RequestIdMiddleware struct {
// contains filtered or unexported fields
}
func NewRequestIdMiddleware ¶
func NewRequestIdMiddleware(next http.Handler, allowRemote bool) *RequestIdMiddleware
func (*RequestIdMiddleware) ServeHTTP ¶
func (m *RequestIdMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.