memory

package
v0.0.0-...-f1366d8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 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 {
	Sessions []datastore.Session
	// contains filtered or unexported fields
}

Store implements an in-memory store for sessions

func NewStore

func NewStore() *Store

NewStore creates a new memory store

func (*Store) CreateSession

func (mem *Store) CreateSession(user datastore.Session) (int64, error)

CreateSession creates a new user session

func (*Store) GetSession

func (mem *Store) GetSession(username, sessionID string) (*datastore.Session, error)

GetSession gets an existing user session

Jump to

Keyboard shortcuts

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