sessionmock

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	States   map[string]session.State
	Sessions map[string]session.Session
	// contains filtered or unexported fields
}

func NewInMemRepository

func NewInMemRepository(loadStateErr, storeStateErr, loadSessionErr, storeSessionErr, deleteStateErr error) *Repository

func (*Repository) DeleteState added in v0.1.0

func (r *Repository) DeleteState(ctx context.Context, stateID string) error

func (*Repository) ListSessions added in v0.1.0

func (r *Repository) ListSessions(ctx context.Context) ([]session.Session, error)

func (*Repository) LoadSession

func (r *Repository) LoadSession(ctx context.Context, sessionID string) (session.Session, error)

func (*Repository) LoadState

func (r *Repository) LoadState(ctx context.Context, stateID string) (session.State, error)

func (*Repository) StoreSession

func (r *Repository) StoreSession(ctx context.Context, session session.Session) error

func (*Repository) StoreState

func (r *Repository) StoreState(ctx context.Context, state session.State) error

Jump to

Keyboard shortcuts

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