Documentation ¶
Index ¶
- Constants
- func EchoAuth() echo.MiddlewareFunc
- func EchoEnforcer() echo.MiddlewareFunc
- func EchoJwt(u IUser) echo.MiddlewareFunc
- func GetAuthority(c echo.Context) (data string)
- func ReadTimeout() (timeout int64)
- func SetTimeout(timeout int64) int64
- func ValidToken(u IUser, auth string) (user IUser, claims *TsClaims, err error)
- type IUser
- type TsClaims
Constants ¶
View Source
const ( Bearer = "Bearer " XTseToken = "X-Ts-Token" CookieKey = "ts-token" )
Variables ¶
This section is empty.
Functions ¶
func EchoEnforcer ¶
func EchoEnforcer() echo.MiddlewareFunc
func GetAuthority ¶
func GetAuthority(c echo.Context) (data string)
func ReadTimeout ¶
func ReadTimeout() (timeout int64)
func SetTimeout ¶
Types ¶
type TsClaims ¶
func GenerateToken ¶
GenerateToken 生成Token
Click to show internal directories.
Click to hide internal directories.