Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recoverer ¶
func NewRecoverer ¶
func NewRecoverer(l RequestLogger) Recoverer
type RequestLogger ¶
type RequestLogger interface {
FromContext(context.Context) logging.Logger
Handler() func(next http.Handler) http.Handler
}
RequestLogger represents a way to log all requests.
func NewRequestLogger ¶
func NewRequestLogger(log logging.Logger) RequestLogger
NewRequestLogger creates a new RequestLogger to log all requests.
Click to show internal directories.
Click to hide internal directories.