sessions

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionInfo

type SessionInfo struct {
	UserID     string
	CreatedAt  time.Time
	VerifiedAt time.Time
	ExpiresAt  time.Time
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL