memory

package
v0.0.0-...-d5ac831 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() session.NewStore

Types

type Store

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

func (*Store) Get

func (s *Store) Get(ctx context.Context, clientID string) (*sess.Session, error)

func (*Store) GetAll

func (s *Store) GetAll() ([]*sess.Session, error)

func (*Store) Iterate

func (s *Store) Iterate(ctx context.Context, fn session.IterateFn) error

func (*Store) Remove

func (s *Store) Remove(ctx context.Context, clientID string) error

func (*Store) Set

func (s *Store) Set(ctx context.Context, session *sess.Session) error

func (*Store) SetSessionExpiry

func (s *Store) SetSessionExpiry(ctx context.Context, clientID string, expiry uint32) error

Jump to

Keyboard shortcuts

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