memory

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func (*Session) Get

func (s *Session) Get(ctx context.Context, key string) (any, error)

func (*Session) ID

func (s *Session) ID() string

func (*Session) Set

func (s *Session) Set(ctx context.Context, key string, value any) error

type Store

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

func InitStore

func InitStore(expiration time.Duration) *Store

func (*Store) Generate

func (s *Store) Generate(ctx context.Context, id string) (session.Session, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, id string) (session.Session, error)

func (*Store) Refresh

func (s *Store) Refresh(ctx context.Context, id string) error

func (*Store) Remove

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

Jump to

Keyboard shortcuts

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