Documentation ¶
Index ¶
- func AccessTokenAuth(w http.ResponseWriter, r *http.Request) *perror.PlutoError
- func AccessTokenAuthMiddleware(handlerWrapper HandlerWrapper, ...) http.Handler
- func AdminAuthMiddleware(handlerWrapper HandlerWrapper, ...) http.Handler
- func NoAuthMiddleware(handlerWrapper HandlerWrapper, ...) http.Handler
- func PlutoAdmin(w http.ResponseWriter, r *http.Request) *perror.PlutoError
- type HandlerWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessTokenAuth ¶ added in v0.4.0
func AccessTokenAuth(w http.ResponseWriter, r *http.Request) *perror.PlutoError
func AccessTokenAuthMiddleware ¶ added in v1.0.0
func AccessTokenAuthMiddleware(handlerWrapper HandlerWrapper, handlers ...func(http.ResponseWriter, *http.Request) *perror.PlutoError) http.Handler
func AdminAuthMiddleware ¶ added in v1.0.0
func AdminAuthMiddleware(handlerWrapper HandlerWrapper, handlers ...func(http.ResponseWriter, *http.Request) *perror.PlutoError) http.Handler
func NoAuthMiddleware ¶ added in v1.0.0
func NoAuthMiddleware(handlerWrapper HandlerWrapper, handlers ...func(http.ResponseWriter, *http.Request) *perror.PlutoError) http.Handler
func PlutoAdmin ¶ added in v0.4.0
func PlutoAdmin(w http.ResponseWriter, r *http.Request) *perror.PlutoError
Types ¶
type HandlerWrapper ¶ added in v1.0.0
type HandlerWrapper func(func(http.ResponseWriter, *http.Request) *perror.PlutoError) negroni.HandlerFunc
Click to show internal directories.
Click to hide internal directories.