Documentation ¶
Overview ¶
Package session implements a cookie session store for goanna
Index ¶
- Constants
- func NewSessionData() *sessionData
- func NewSignedCookieSessionFinder(name string, key []byte, defaultDuration time.Duration, secure bool) goanna.SessionFinder
- type SignedCookieSession
- func (sd SignedCookieSession) Clear()
- func (sd SignedCookieSession) Get(key string) string
- func (sd SignedCookieSession) GetId() string
- func (s SignedCookieSession) HasExpired() bool
- func (sd SignedCookieSession) Init()
- func (data SignedCookieSession) Marshal(raw []byte) error
- func (s SignedCookieSession) MaxAge() time.Duration
- func (sd SignedCookieSession) Set(key string, value string)
- func (s SignedCookieSession) SetMaxAge(d time.Duration)
- func (sd SignedCookieSession) Unmarshal() ([]byte, error)
- func (s SignedCookieSession) WriteToResponse(resp goanna.Response)
Constants ¶
View Source
const (
EXPIRY_KEY = "SESSION_EXPIRY_TIME"
)
Variables ¶
This section is empty.
Functions ¶
func NewSessionData ¶
func NewSessionData() *sessionData
Types ¶
type SignedCookieSession ¶
type SignedCookieSession struct {
// contains filtered or unexported fields
}
func (SignedCookieSession) HasExpired ¶
func (s SignedCookieSession) HasExpired() bool
func (SignedCookieSession) MaxAge ¶
func (s SignedCookieSession) MaxAge() time.Duration
func (SignedCookieSession) SetMaxAge ¶
func (s SignedCookieSession) SetMaxAge(d time.Duration)
func (SignedCookieSession) WriteToResponse ¶
func (s SignedCookieSession) WriteToResponse(resp goanna.Response)
Click to show internal directories.
Click to hide internal directories.