session

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
}

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