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