sessioninfo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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
	Permissions map[access.Domain][]access.Permission
}

SessionInfo struct contains information about a session

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