Documentation
¶
Overview ¶
sessioninfo package handles session information.
Index ¶
Constants ¶
View Source
const (
CtxSessionInfo ctxKey = "sessionInfo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionInfo ¶
type SessionInfo struct {
ID ccc.UUID
Username string
CreatedAt time.Time
UpdatedAt time.Time
Expired bool
}
SessionInfo struct contains information about a session
func FromCtx ¶ added in v0.1.2
func FromCtx(ctx context.Context) *SessionInfo
func FromRequest ¶
func FromRequest(r *http.Request) *SessionInfo
Click to show internal directories.
Click to hide internal directories.