Documentation ¶
Index ¶
- Constants
- Variables
- type MemcachedStore
- type SecureCookieStore
- func (s *SecureCookieStore) Cookie(sess *Session) (*http.Cookie, error)
- func (s *SecureCookieStore) DecodeValue(name, value string) (*Session, error)
- func (s *SecureCookieStore) GetSession(req *http.Request) (*Session, error)
- func (s *SecureCookieStore) SetSession(w http.ResponseWriter, sess *Session) error
- type Session
- type Store
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 *configv2.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) DecodeValue ¶ added in v0.10.0
func (s *SecureCookieStore) DecodeValue(name, value string) (*Session, 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.