Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJSONValid ¶
func IsJSONValid(next http.HandlerFunc) http.HandlerFunc
IsJSONValid validates if JSON in request body is valid
Types ¶
type Middleware ¶
Middleware contains dependencies for middleware structure
func (*Middleware) HTTPLogger ¶
func (md *Middleware) HTTPLogger(next http.Handler) http.Handler
HTTPLogger middleware to log http request
func (*Middleware) SetLogger ¶
func (m *Middleware) SetLogger(logger zerolog.Logger)
SetLogger sets logger
Click to show internal directories.
Click to hide internal directories.