Documentation ¶
Index ¶
- func BaseMiddleware(isProduction bool, log *zap.Logger) []func(http.Handler) http.Handler
- func Demux(state uint32, r chi.Router) *demux
- func LogRequest(next http.Handler) http.Handler
- func LogResponse(next http.Handler) http.Handler
- func New(log *zap.Logger, opts *options.Options) *server
- func Test(o *options.Options) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseMiddleware ¶
func LogRequest ¶
LogRequest middleware logs request details
It uses logger from context, see contextLogger()
func LogResponse ¶
LogResponse middleware logs response details
It uses logger from context, see contextLogger()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.