memory

package
v0.0.0-...-0169c2d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is the actual provider of sessions

func (*Provider) SessionDestroy

func (pder *Provider) SessionDestroy(sid string) error

SessionDestroy to destroy a session

func (*Provider) SessionGC

func (pder *Provider) SessionGC(maxlifetime int64)

SessionGC to GC

func (*Provider) SessionInit

func (pder *Provider) SessionInit(sid string) (session.Session, error)

SessionInit to init a session

func (*Provider) SessionRead

func (pder *Provider) SessionRead(sid string) (session.Session, error)

SessionRead to read a session, or init a session if nil

func (*Provider) SessionUpdate

func (pder *Provider) SessionUpdate(sid string) error

SessionUpdate to update session

type SessionStore

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

SessionStore is the session data

func (*SessionStore) Delete

func (st *SessionStore) Delete(key interface{}) error

Delete the session

func (*SessionStore) Get

func (st *SessionStore) Get(key interface{}) interface{}

Get the session

func (*SessionStore) SessionID

func (st *SessionStore) SessionID() string

SessionID of session

func (*SessionStore) Set

func (st *SessionStore) Set(key, value interface{}) error

Set the session

Jump to

Keyboard shortcuts

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