Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func Middleware ¶
func Middleware(cfg MiddlewareConfig, forceDBE bool, getDBName GetDatabaseNameFn) heligo.Middleware
Types ¶
type MiddlewareConfig ¶
type Session ¶
type Session struct { Claims *Claims LastUsedAt time.Time Db *database.Database DbConn *database.DbPoolConn // contains filtered or unexported fields }
A Session for SmoothDB is the way to cache information about a user and his connection to a database
type SessionList ¶
type SessionList struct {
// contains filtered or unexported fields
}
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
SessionManager manages user sessions and monitors them efficiently. When disabled, it simply returns Sessions without managing or monitoring.
func NewSessionManager ¶
func NewSessionManager(logger *logging.Logger, enabled bool, shutdown chan struct{}) *SessionManager
func (*SessionManager) Statistics ¶
func (sm *SessionManager) Statistics() SessionStatistics
type SessionStatistics ¶
Click to show internal directories.
Click to hide internal directories.