store

package
v0.0.0-...-c5d2ffa Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 15 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 {
	// contains filtered or unexported fields
}

Store session store

func NewStore

func NewStore(tableName string, cfg aws.Config, keyPairs ...[]byte) *Store

NewStore create a new session store

func (*Store) Get

func (s *Store) Get(r *http.Request, sessionName string) (*sessions.Session, error)

Get get a session from DynamoDB

func (*Store) New

func (s *Store) New(r *http.Request, sessionName string) (*sessions.Session, error)

New create a new session or load a session from DynamoDB

func (*Store) Save

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

Save save a session in DynamoDB

Jump to

Keyboard shortcuts

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