session

package
v0.0.0-...-6d8a328 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GetUser(ctx context.Context, sessionUUID string) (*models.User, error)
	SaveUser(ctx context.Context, sessionUUID string, user *models.User, d time.Duration) error
}

func NewSessionProvider

func NewSessionProvider(sess models.SessionRepository) Provider

NewSessionProvider Provider contructor that returns the default session provider.

Jump to

Keyboard shortcuts

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