Documentation
¶
Index ¶
- type Cookie
- type CookieData
- type Database
- type Expiration
- type MemoryStore
- func (m *MemoryStore) Destroy(sid string) *session.Session
- func (m *MemoryStore) Get(sid string) *session.Session
- func (m *MemoryStore) Set(sid *string, session *session.Session)
- func (m *MemoryStore) ShutDown()
- func (m *MemoryStore) Shutdown()
- func (m *MemoryStore) Touch(sid string, session *session.Session)
- func (m *MemoryStore) UpdateExpirations(sid *string, session *session.Session, updateDbExp *bool) *session.Session
- func (m *MemoryStore) Write(sid string, session session.Session)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct {
Path string
Domain string
SameSite string
MaxAge *int
HttpOnly bool
Secure bool
// contains filtered or unexported fields
}
func (*Cookie) GetData ¶
func (c *Cookie) GetData() CookieData
func (*Cookie) GetExpires ¶
GetExpires returns the expiration time of the cookie
func (*Cookie) SetExpires ¶
SetExpires sets the max age of the cookie
type CookieData ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore(db db.DataStore, refresh *int64) *MemoryStore
func (*MemoryStore) ShutDown ¶
func (m *MemoryStore) ShutDown()
func (*MemoryStore) Shutdown ¶
func (m *MemoryStore) Shutdown()
func (*MemoryStore) UpdateExpirations ¶
Click to show internal directories.
Click to hide internal directories.