Documentation
Index ¶
Constants ¶
View Source
const ( Bearer = "Bearer " XTseToken = "X-Ts-Token" CookieKey = "ts-token" )
Variables ¶
This section is empty.
Functions ¶
func EchoAuth ¶
func EchoAuth() echo.MiddlewareFunc
func EchoEnforcer ¶
func EchoEnforcer() echo.MiddlewareFunc
func GetAuthority ¶
func ReadTimeout ¶
func ReadTimeout() (timeout int64)
func SetTimeout ¶
Types ¶
type TsClaims ¶
func GenerateToken ¶
GenerateToken 生成Token