Documentation ¶
Index ¶
Constants ¶
View Source
const COOKIE_NAME_TOKEN = "token"
View Source
const COOKIE_NAME_UID = "uid"
View Source
const GIN_META_UID = "cauth:uid"
View Source
const RED_KEY_PREF = "cauth:"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCookieAuth ¶
type RedisCookieAuth struct { *redis_auth.RedisAuth // contains filtered or unexported fields }
func New ¶
func New(red *redis.Client, namespace string) *RedisCookieAuth
func (*RedisCookieAuth) Middleware ¶
func (a *RedisCookieAuth) Middleware() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.