Versions in this module Expand all Collapse all v1 v1.2.2 Jun 28, 2016 Changes in this version type Options + UnauthorizedHeaderName string v1.2.1 Aug 28, 2015 Changes in this version + type AuthGuard interface + Check func(username string, req *http.Request) bool + Complaint func(username string, req *http.Request) + type AuthProviderType func(user, password string) bool + type Client struct + ExpireDate time.Time + LoginDate time.Time + UserAgent string + UserHost string + Username string + func (c *Client) Expire() bool + func (c *Client) Logout(res http.ResponseWriter, req *http.Request) error + func (c *Client) TimeToEndOfSession() int + type Gelada struct + func New(o Options) (*Gelada, error) + func (g *Gelada) Auth(f http.HandlerFunc) http.HandlerFunc + func (g *Gelada) AuthHandler(res http.ResponseWriter, req *http.Request) + func (g *Gelada) GetClient(req *http.Request) (*Client, error) + func (g *Gelada) GlobalAuth(next http.Handler) http.Handler + func (g *Gelada) LogoutHandler(res http.ResponseWriter, req *http.Request) + func (g *Gelada) SimpleAuthPage(res http.ResponseWriter, req *http.Request) + func (g *Gelada) SimpleAuthProvider(userlist map[string]string) AuthProviderType + type Options struct + AuthGuard AuthGuard + AuthProvider AuthProviderType + BindUserAgent bool + BindUserHost bool + Domain string + Exceptions []string + GorillaCookieStore *sessions.CookieStore + HTTPOnly bool + LoginPasswordFieldName string + LoginRoute string + LoginUserFieldName string + LogoutRoute string + MaxAge int + Path string + PostLoginRoute string + PostLogoutRoute string + Secure bool + SessionKeys [][]byte + SessionLifeTime int + SessionName string