session

package
v0.0.0-...-deeb493 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID() string

Types

type Cache

type Cache interface {
	NewSession() Session
	Get(id string) Session
	Resurect(session Session)
}

func NewCache

func NewCache(expiry time.Duration) Cache

type Session

type Session interface {
	ID() string
	Get(k interface{}) interface{}
	Set(k interface{}, v interface{})
}

func NewSession

func NewSession() Session

func Resurect

func Resurect(id string) Session

Jump to

Keyboard shortcuts

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