Documentation ¶
Overview ¶
Package session implements a cookie session store for goanna
Index ¶
- Constants
- type CookieSessionStore
- type SignedCookieSession
- func (s SignedCookieSession) Clear()
- func (s SignedCookieSession) Expiry() time.Time
- func (s SignedCookieSession) Get(key string) string
- func (s SignedCookieSession) GetId() string
- func (s SignedCookieSession) Set(key string, value string)
- func (s SignedCookieSession) SetDefaultExpiry() time.Time
- func (s SignedCookieSession) SetExpiry(e time.Time) time.Time
- func (s SignedCookieSession) WriteToResponse(resp goanna.Response)
Constants ¶
View Source
const (
EXPIRY_KEY = "SESSION_EXPIRY_TIME"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieSessionStore ¶
type CookieSessionStore struct { goanna.SessionStore goanna.CookieSigner CookieName string DefaultDuration time.Duration }
func NewCookieSessionStore ¶
func NewCookieSessionStore(name, secret string, defaultDuration time.Duration) CookieSessionStore
func (CookieSessionStore) GetSession ¶
func (ss CookieSessionStore) GetSession(request *goanna.Request) goanna.Session
type SignedCookieSession ¶
type SignedCookieSession struct { goanna.CookieSigner // contains filtered or unexported fields }
func (SignedCookieSession) Clear ¶
func (s SignedCookieSession) Clear()
func (SignedCookieSession) Expiry ¶
func (s SignedCookieSession) Expiry() time.Time
func (SignedCookieSession) Get ¶
func (s SignedCookieSession) Get(key string) string
func (SignedCookieSession) GetId ¶
func (s SignedCookieSession) GetId() string
func (SignedCookieSession) Set ¶
func (s SignedCookieSession) Set(key string, value string)
func (SignedCookieSession) SetDefaultExpiry ¶
func (s SignedCookieSession) SetDefaultExpiry() time.Time
func (SignedCookieSession) SetExpiry ¶
func (s SignedCookieSession) SetExpiry(e time.Time) time.Time
func (SignedCookieSession) WriteToResponse ¶
func (s SignedCookieSession) WriteToResponse(resp goanna.Response)
Click to show internal directories.
Click to hide internal directories.