Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReqCtxMiddleware ¶
func NewReqCtxMiddleware(logger *logrus.FieldLogger) func(fn Handler) httprouter.Handle
WithReqCtx parses the request and adds a reqcontext.RequestContext instance related to the request.
Types ¶
type Handler ¶
type Handler func(http.ResponseWriter, *http.Request, httprouter.Params, reqcontext.RequestContext)
Handler is the signature for functions that accepts a reqcontext.RequestContext in addition to those required by the httprouter package.
type Middleware ¶
func NewTokenAuthMiddleware ¶
func NewTokenAuthMiddleware(authService services.AuthService) Middleware
wrap parses the request and adds a reqcontext.RequestContext instance related to the request.
Click to show internal directories.
Click to hide internal directories.