Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorNoLoginCookie = errors.New("No Login Cookie")
)
Functions ¶
This section is empty.
Types ¶
type CookieAuthentication ¶
type CookieAuthentication struct {
// contains filtered or unexported fields
}
func NewCookieAuthentication ¶
func NewCookieAuthentication( domain string, hmacKey []byte, aesKey []byte) *CookieAuthentication
func (*CookieAuthentication) DeleteLoginCookie ¶
func (ch *CookieAuthentication) DeleteLoginCookie(w http.ResponseWriter)
func (*CookieAuthentication) GetLoginCookie ¶
func (ch *CookieAuthentication) GetLoginCookie(r *http.Request) (li *LoginInfo, err error)
func (*CookieAuthentication) SetLoginCookie ¶
func (ch *CookieAuthentication) SetLoginCookie(w http.ResponseWriter, loginInfo *LoginInfo)
Click to show internal directories.
Click to hide internal directories.