Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option struct { // Key 生成 token 使用的密钥 Key string // CookieName token 在 cookie 中的名字 CookieName string // HeaderName token 在 header 中的名字 HeaderName string // BodyName token 在 body 中的名字 BodyName string // QueryName token 在 query 中的名字 QueryName string // CookieMaxAge cookie 有效时间,秒,默认为 24小时 CookieMaxAge int // CookieDomain .. CookieDomain string // CookiePath .. CookiePath string // CookieHTTPOnly CookieHTTPOnly bool // Methods 这些方法参与验证 Methods []string // IgnoreFunc 忽略检测,返回 true 表示不检测 IgnoreFunc func(ctx zeroapi.Context) bool }
Option ..
Click to show internal directories.
Click to hide internal directories.