memory

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store represents a Store that uses an in-memory map

func New

func New(duration time.Duration) *Store

New returns a new SessionStore with the given expiration duration.

func (*Store) Check

func (s *Store) Check(id string) (*session.Session, error)

Check returns the session for the given id or nil if it doesn't exist. The returned error will always be nil.

func (*Store) Create

func (s *Store) Create(sess *session.Session) (string, error)

Create returns a new session ID for the given session. The returned error will always be nil.

Jump to

Keyboard shortcuts

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