sessions

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(username, role, token string, expiry time.Time, c Conf) error

func DeleteSession

func DeleteSession(token string, c Conf)

func DeleteUserSessions

func DeleteUserSessions(username string)

Types

type Conf

type Conf = types.Conf

type Session

type Session struct {
	UserName string
	Role     string
	// contains filtered or unexported fields
}

func GetSession

func GetSession(token string) (Session, bool)

func (Session) IsExpired

func (s Session) IsExpired() bool

Jump to

Keyboard shortcuts

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