sessioninfo

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 5 Imported by: 2

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

Jump to

Keyboard shortcuts

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