Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware wrapps all middlewares
func CreateMiddleware ¶
func CreateMiddleware(l *infra.Logger) *Middleware
CreateMiddleware create a instance of a middleware
func (*Middleware) JSONResponse ¶
func (mw *Middleware) JSONResponse(next http.Handler) http.Handler
JSONResponse add json content type to header
Click to show internal directories.
Click to hide internal directories.