sessionmock

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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 {
	// contains filtered or unexported fields
}

func NewInMemRepository

func NewInMemRepository(opts ...RepositoryOption) *Repository

func (*Repository) DeleteSession added in v0.13.0

func (r *Repository) DeleteSession(_ context.Context, sess session.Session) error

func (*Repository) DeleteState

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

func (*Repository) ListSessions

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

func (*Repository) LoadSession

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

func (*Repository) LoadState

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

func (*Repository) StoreSession

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

func (*Repository) StoreState

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

type RepositoryOption added in v0.13.0

type RepositoryOption func(*Repository)

func WithDeleteSessionError added in v0.13.0

func WithDeleteSessionError(err error) RepositoryOption

func WithDeleteStateError added in v0.13.0

func WithDeleteStateError(err error) RepositoryOption

func WithLoadSessionError added in v0.13.0

func WithLoadSessionError(err error) RepositoryOption

func WithLoadStateError added in v0.13.0

func WithLoadStateError(err error) RepositoryOption

func WithSession added in v0.13.0

func WithSession(sess session.Session) RepositoryOption

func WithState added in v0.13.0

func WithState(state session.State) RepositoryOption

func WithStoreSessionError added in v0.13.0

func WithStoreSessionError(err error) RepositoryOption

func WithStoreStateError added in v0.13.0

func WithStoreStateError(err error) RepositoryOption

Jump to

Keyboard shortcuts

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