session

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session interface {
	Username() string
	DisplayName() string
}

Session holds HTTP session data

type Store

type Store interface {
	//Create creates and returns a session id for the given session
	//or an error if one occurred
	Create(s Session) (id string, err error)
	//Read returns the session for the given id or nil if it doesn't exist
	//or an error if one occurred
	Read(id string) (Session, error)
}

Store is a session storage mechanism

Directories

Path Synopsis
Package memory implements an in-memory Session Store with time-based expiration
Package memory implements an in-memory Session Store with time-based expiration

Jump to

Keyboard shortcuts

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