Documentation
¶
Index ¶
- func DeleteLoginCookie(pr Provider, rsp http.ResponseWriter) error
- func GetLoggedIn(pr Provider, req *http.Request) (user.User, error)
- func GetLoginCookie(pr Provider, req *http.Request) (string, error)
- func IsLoggedIn(pr Provider, req *http.Request) bool
- func SetLoginCookie(pr Provider, rsp http.ResponseWriter, u user.User) error
- type Config
- type CookieConfig
- type DefaultConfig
- type DefaultCookieConfig
- type DefaultURLConfig
- type Provider
- type URLConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLoginCookie ¶
func DeleteLoginCookie(pr Provider, rsp http.ResponseWriter) error
func SetLoginCookie ¶
Types ¶
type Config ¶
type Config interface {
Cookie() CookieConfig
URL() URLConfig
}
func NewDefaultConfig ¶
type CookieConfig ¶
func NewDefaultCookieConfig ¶
func NewDefaultCookieConfig() (CookieConfig, error)
type DefaultConfig ¶
type DefaultConfig struct {
Config
// contains filtered or unexported fields
}
func (*DefaultConfig) Cookie ¶
func (c *DefaultConfig) Cookie() CookieConfig
func (*DefaultConfig) URL ¶
func (c *DefaultConfig) URL() URLConfig
type DefaultCookieConfig ¶
type DefaultCookieConfig struct {
CookieConfig
// contains filtered or unexported fields
}
func (*DefaultCookieConfig) Name ¶
func (c *DefaultCookieConfig) Name() string
func (*DefaultCookieConfig) Salt ¶
func (c *DefaultCookieConfig) Salt() string
func (*DefaultCookieConfig) Secret ¶
func (c *DefaultCookieConfig) Secret() string
type DefaultURLConfig ¶
type DefaultURLConfig struct {
URLConfig
// contains filtered or unexported fields
}
func (*DefaultURLConfig) SigninURL ¶
func (c *DefaultURLConfig) SigninURL() string
func (*DefaultURLConfig) SignoutURL ¶
func (c *DefaultURLConfig) SignoutURL() string
func (*DefaultURLConfig) SignupURL ¶
func (c *DefaultURLConfig) SignupURL() string
Click to show internal directories.
Click to hide internal directories.