option

package
v0.0.0-...-86fd2e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler()

ErrorHandler 全局错误处理器,统一拦截代码中产生的error,最终返回json

func ExampleHandler

func ExampleHandler(next http.HandlerFunc) http.HandlerFunc

func NotAllowedHandler

func NotAllowedHandler() http.HandlerFunc

NotAllowedHandler 不允许访问

func NotFoundHandler

func NotFoundHandler() http.HandlerFunc

NotFoundHandler 路由不存在, 404

func SessionHandler

func SessionHandler(next http.HandlerFunc) http.HandlerFunc

SessionHandler Session全局中间件

func UnauthorizedCallback

func UnauthorizedCallback() handler.UnauthorizedCallback

UnauthorizedCallback JWT授权不通过,http code 401

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL