Help us shape the future of Go! Take the 2026 Go Developer Survey

inmemory

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 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(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