inmemory

package
v1.17.20 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T, fopts ...Option) state.Store

func NewQuerier

func NewQuerier(t *testing.T, fopts ...Option) state.Store

func NewTransactionalMultiMaxSize

func NewTransactionalMultiMaxSize(t *testing.T, fopts ...Option) state.Store

Types

type Option

type Option func(*options)

Option is a function that configures the process.

func WithFeatures

func WithFeatures(features ...state.Feature) Option

func WithQueryFn

func WithQueryFn(fn func(context.Context, *state.QueryRequest) (*state.QueryResponse, error)) Option

func WithTransactionalStoreMultiMaxSizeFn

func WithTransactionalStoreMultiMaxSizeFn(fn func() int) Option

type Wrapped

type Wrapped struct {
	state.Store
	// contains filtered or unexported fields
}

Wrapped is a wrapper around inmemory state store to ensure that Init and Close are called only once.

func (*Wrapped) Close

func (w *Wrapped) Close() error

func (*Wrapped) Features

func (w *Wrapped) Features() []state.Feature

func (*Wrapped) Init

func (w *Wrapped) Init(ctx context.Context, metadata state.Metadata) error

type WrappedQuerier

type WrappedQuerier struct {
	*Wrapped
	// contains filtered or unexported fields
}

func (*WrappedQuerier) Query

type WrappedTransactionalMultiMaxSize

type WrappedTransactionalMultiMaxSize struct {
	*Wrapped
	state.TransactionalStore
	// contains filtered or unexported fields
}

func (*WrappedTransactionalMultiMaxSize) MultiMaxSize

func (w *WrappedTransactionalMultiMaxSize) MultiMaxSize() int

Jump to

Keyboard shortcuts

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