Documentation ¶
Index ¶
- Variables
- func CurrentLocale(req *http.Request) string
- func NewCookieStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
- func NewSessionStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
- type AdminAuth
- type AuthStorer
- func (s AuthStorer) ConfirmUser(tok string) (result interface{}, err error)
- func (s AuthStorer) Create(key string, attr authboss.Attributes) error
- func (s AuthStorer) Get(key string) (result interface{}, err error)
- func (s AuthStorer) Put(key string, attr authboss.Attributes) error
- func (s AuthStorer) RecoverUser(rec string) (result interface{}, err error)
- type CookieStorer
- type SessionStorer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Auth = authboss.New()
)
View Source
var CookieStore *securecookie.SecureCookie
Functions ¶
func CurrentLocale ¶
func NewCookieStorer ¶
func NewCookieStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
func NewSessionStorer ¶
func NewSessionStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
Types ¶
type AdminAuth ¶
type AdminAuth struct { }
func (AdminAuth) GetCurrentUser ¶
func (AdminAuth) GetCurrentUser(c *admin.Context) qor.CurrentUser
type AuthStorer ¶
type AuthStorer struct { }
func (AuthStorer) ConfirmUser ¶
func (s AuthStorer) ConfirmUser(tok string) (result interface{}, err error)
func (AuthStorer) Create ¶
func (s AuthStorer) Create(key string, attr authboss.Attributes) error
func (AuthStorer) Get ¶
func (s AuthStorer) Get(key string) (result interface{}, err error)
func (AuthStorer) Put ¶
func (s AuthStorer) Put(key string, attr authboss.Attributes) error
func (AuthStorer) RecoverUser ¶
func (s AuthStorer) RecoverUser(rec string) (result interface{}, err error)
type CookieStorer ¶
type CookieStorer struct {
// contains filtered or unexported fields
}
func (CookieStorer) Del ¶
func (s CookieStorer) Del(key string)
func (CookieStorer) Put ¶
func (s CookieStorer) Put(key, value string)
type SessionStorer ¶
type SessionStorer struct {
// contains filtered or unexported fields
}
func (SessionStorer) Del ¶
func (s SessionStorer) Del(key string)
func (SessionStorer) Put ¶
func (s SessionStorer) Put(key, value string)
Click to show internal directories.
Click to hide internal directories.