Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is the key used to store the session in the request context.
const ( CookieName = "session" SessionKey ContextKey = "session" )
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager represents a session manager.
func NewManager ¶
func NewManager(cookie *securecookie.SecureCookie, queries *db.Queries) *Manager
NewManager returns a new session manager.
Click to show internal directories.
Click to hide internal directories.