Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerWithRequest ¶
LoggerWithRequest returns a `slog.Logger` instance with the following keys set: (HTTP) method, user agent, path, remote addr and user ip.
func ReadUserIP ¶
ReadUserIP returns the value of the `X-Real-Ip` or `X-Forwarded-For` headers (in that order) or the default remote address reported by 'req'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.