Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionInfo ¶
type SessionManager ¶
type SessionManager interface {
CheckSession(r *http.Request, client clients.Client) (string, bool, bool)
CreateSession(r *http.Request, w http.ResponseWriter, client clients.Client, userID string, verified bool) error
VerifySession(r *http.Request, w http.ResponseWriter, client clients.Client) error
GetSessionInfo(s *SessionInfo, r *http.Request, client clients.Client)
EndSession(r *http.Request, w http.ResponseWriter, client clients.Client) error
}
func NewSessionManager ¶
func NewSessionManager(sessionStore sessions.Store, presets presets.Presets) SessionManager
Click to show internal directories.
Click to hide internal directories.