Versions in this module Expand all Collapse all v0 v0.2.0 Mar 9, 2023 v0.1.0 Jan 9, 2023 Changes in this version + func EnableCookieStateKeeper() + func ProvideAuthenticator(name string, f interface{}) + func ProvideStateKeeper(newFn interface{}) + type Authenticator interface + EnableGlobal func(option *Option) + EnableGroup func(r *gin.RouterGroup, option *Option) + SkipPath func(r *gin.RouterGroup, path string) + SkipPathGlobal func(path string) + Username func(c *gin.Context) (string, bool) + type Option struct + LoginEndpoint string + LogoutEndpoint string + type StateKeeper interface + Clear func(c *gin.Context) error + CookieName func() string + EncodeCookieValue func() (string, error) + Get func(key string) (interface{}, bool) + GetFloat64 func(key string) (float64, bool) + GetInt func(key string) (int, bool) + GetString func(key string) (string, bool) + Restore func(c *gin.Context) error + Save func(c *gin.Context) error + Set func(c *gin.Context, key string, value interface{})