Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFuncLogger ¶
func HandleFuncLogger(h handler.Handler) http.HandlerFunc
HandleFuncLogger wraps http.HandlerFunc with incoming request start & end logs.
Types ¶
type RoundTripperLogger ¶
type RoundTripperLogger struct { Transport http.RoundTripper Logger *slog.Logger }
RoundTripperLogger implements http.RoundTripper to add outbound request start & end logs.
Click to show internal directories.
Click to hide internal directories.