nanostore

package module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: MIT Imports: 4 Imported by: 1

README

session-store-nano

Godoc Report Tests Coverage Sponsor

Session store for the nano database.

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionStoreNano

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

SessionStoreNano is a store saving sessions in a nano database.

func New

func New(collection *nano.Collection) *SessionStoreNano

New creates a session store using an Aerospike database.

func (*SessionStoreNano) Delete added in v0.1.5

func (store *SessionStoreNano) Delete(sid string)

Delete deletes the session with the given ID.

func (*SessionStoreNano) Get

func (store *SessionStoreNano) Get(sid string) (*session.Session, error)

Get loads the initial session values from the database.

func (*SessionStoreNano) Set

func (store *SessionStoreNano) Set(sid string, session *session.Session) error

Set updates the session values in the database.

Jump to

Keyboard shortcuts

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