Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(handler ReqHandlerFunc, ctx AuthCtx) http.HandlerFunc
Check auth header and serve handler func
Types ¶
type ReqHandlerFunc ¶
type ReqHandlerFunc func(ctx AuthCtx, wr http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.