Documentation ¶
Index ¶
Constants ¶
View Source
const (
CookieName = "heimdallr"
)
Variables ¶
View Source
var ( Expiration = 24 * time.Hour ErrSessionExpired = xerrors.New("session: expired") )
Functions ¶
This section is empty.
Types ¶
type MemcachedStore ¶
type MemcachedStore struct {
// contains filtered or unexported fields
}
func NewMemcachedStore ¶
func NewMemcachedStore(conf *config.Session) *MemcachedStore
func (*MemcachedStore) GetSession ¶
func (m *MemcachedStore) GetSession(req *http.Request) (*Session, error)
func (*MemcachedStore) SetSession ¶
func (m *MemcachedStore) SetSession(w http.ResponseWriter, sess *Session) error
type SecureCookieStore ¶
type SecureCookieStore struct { Domain string // contains filtered or unexported fields }
func NewSecureCookieStore ¶
func NewSecureCookieStore(hasKey, blockKey []byte, domain string) *SecureCookieStore
func (*SecureCookieStore) Cookie ¶
func (s *SecureCookieStore) Cookie(sess *Session) (*http.Cookie, error)
func (*SecureCookieStore) GetSession ¶
func (s *SecureCookieStore) GetSession(req *http.Request) (*Session, error)
func (*SecureCookieStore) SetSession ¶
func (s *SecureCookieStore) SetSession(w http.ResponseWriter, sess *Session) error
Click to show internal directories.
Click to hide internal directories.