state

package
v1.19.2 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: 12 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

View Source
var ErrTransactionsTooManyOperations = errors.New("the transaction contains more operations than supported by the state store")

Functions

This section is empty.

Types

type Backend

type Backend interface {
	contribstate.Store
	contribstate.TransactionalStore
}

type Interface

type Interface interface {
	// Get retrieves actor state.
	Get(ctx context.Context, req *api.GetStateRequest, lock bool) (*api.StateResponse, error)

	// GetBulk retrieves actor state in bulk.
	GetBulk(ctx context.Context, req *api.GetBulkStateRequest, lock bool) (api.BulkStateResponse, error)

	// TransactionalStateOperation performs a transactional state operation with the actor state store.
	TransactionalStateOperation(ctx context.Context, ignoreHosted bool, req *api.TransactionalRequest, lock bool) error
}

func New

func New(opts Options) Interface

type Options

type Options struct {
	AppID      string
	CompStore  *compstore.ComponentStore
	Resiliency resiliency.Provider
	Table      table.Interface
	Placement  placement.Interface

	// TODO: @joshvanl Remove in Dapr 1.12 when ActorStateTTL is finalized.
	StateTTLEnabled bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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