session

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionLength    = 10 * time.Minute
	MinSessionLength = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetOrCreate(_ *incoming.Request, userID string) (*model.Session, error)
	ListForUser(_ *incoming.Request, userID string) ([]*model.Session, error)
	RevokeSessionsForApp(*incoming.Request, apps.AppID) error
	RevokeSessionsForUser(_ *incoming.Request, userID string) error
}

func NewService

func NewService(mm *pluginapi.Client, store *store.Service) Service

Jump to

Keyboard shortcuts

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