session

package
v0.0.0-...-01f85aa Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionManager

type SessionManager struct {
	// contains filtered or unexported fields
}

func New

func New() *SessionManager

func (*SessionManager) GetUser

func (sm *SessionManager) GetUser(ctx context.Context, sessionUUID string) (*models.User, error)

func (*SessionManager) SaveUser

func (sm *SessionManager) SaveUser(ctx context.Context, sessionUUID string, user *models.User, d time.Duration) error

Jump to

Keyboard shortcuts

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