Documentation ¶
Overview ¶
Package middleware contains rest middlewares
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 represents rest middleware.
func NewMiddleware ¶
func NewMiddleware(authService auth.Service) *Middleware
NewMiddleware create instance of Middleware.
func (*Middleware) Authorization ¶
func (m *Middleware) Authorization(next http.Handler) http.Handler
Authorization middleware authenticates and populates user info.
Click to show internal directories.
Click to hide internal directories.