Documentation
¶
Index ¶
- func Errors(ctx context.Context, log *logger.Logger, handler Handler) error
- func Logger(ctx context.Context, log *logger.Logger, path string, rawQuery string, ...) error
- func Metrics(ctx context.Context, handler Handler) error
- func Panics(ctx context.Context, handler Handler) (err error)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errors ¶
Errors handles errors coming out of the call chain. It detects normal application errors which are used to respond to the client in a uniform way. Unexpected errors (status >= 500) are logged.
func Logger ¶
func Logger(ctx context.Context, log *logger.Logger, path string, rawQuery string, method string, remoteAddr string, handler Handler) error
Logger writes information about the request to the logs.
Types ¶
Click to show internal directories.
Click to hide internal directories.