session

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Legacy added in v1.2.1

func Legacy(users core.UserStore, config Config) (core.Session, error)

Legacy returns a session manager that is capable of mapping legacy tokens to 1.0 users using a mapping file.

func New

func New(users core.UserStore, config Config) core.Session

New returns a new cookie-based session management.

Types

type Config

type Config struct {
	Secure      bool
	Secret      string
	Timeout     time.Duration
	MappingFile string
}

Config provides the session configuration.

func NewConfig

func NewConfig(secret string, timeout time.Duration, secure bool) Config

NewConfig returns a new session configuration.

Jump to

Keyboard shortcuts

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