store

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionStore

type SessionStore struct {
	Options    *sessions.Options
	StoreMutex sync.RWMutex
	// contains filtered or unexported fields
}

func NewStore

func NewStore(c session.Session, codec ...[]byte) *SessionStore

func (*SessionStore) Close

func (store *SessionStore) Close() error

func (*SessionStore) Delete

func (store *SessionStore) Delete(session *sessions.Session) error

func (*SessionStore) Get

func (store *SessionStore) Get(r *http.Request, name string) (*sessions.Session, error)

func (*SessionStore) New

func (store *SessionStore) New(r *http.Request, name string) (*sessions.Session, error)

func (*SessionStore) Save

func (store *SessionStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error

Jump to

Keyboard shortcuts

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