Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log - Log *zap.SugaredLogger )
Functions ¶
Types ¶
type Session ¶
type Session struct { ID string // contains filtered or unexported fields }
Session -
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
SessionManager -
func (*SessionManager) CleanupSessions ¶
func (m *SessionManager) CleanupSessions()
CleanupSessions - remove sessions
func (*SessionManager) GetOrCreateSession ¶
func (m *SessionManager) GetOrCreateSession(w http.ResponseWriter, r *http.Request) (*Session, error)
GetOrCreateSession - retrieve existing session or create a new one for request
func (*SessionManager) OnlineSessions ¶
func (m *SessionManager) OnlineSessions() *[]*Session
OnlineSessions -
Click to show internal directories.
Click to hide internal directories.