memstore

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: MIT Imports: 3 Imported by: 1

README

session-store-memory

Memory store for Aero sessions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStore

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

MemoryStore is the default session store. You should use it for prototyping, not for production.

func New

func New() *MemoryStore

New creates a session memory store.

func (*MemoryStore) Get

func (store *MemoryStore) Get(id string) (*session.Session, error)

Get a session by its ID.

func (*MemoryStore) Set

func (store *MemoryStore) Set(id string, session *session.Session) error

Set saves a session so it can be retrieved by its ID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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