state

package
v1.18.11 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: 15 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

View Source
const (
	PropertyKeyActorStateStore = "actorstatestore"
)

Variables

This section is empty.

Functions

func IsActorStateStore added in v1.18.11

func IsActorStateStore(props map[string]string) bool

IsActorStateStore reports whether the metadata properties of a state store mark it as the actor state store: its "actorStateStore" property, matched case-insensitively, is truthy. Names differing only in case are separate properties; the store is marked if any of them is truthy, so the result does not depend on map iteration order. The hot reload reconciler applies the same check before processing a component, so both must agree.

func IsActorStateStoreKey added in v1.18.11

func IsActorStateStoreKey(name string) bool

IsActorStateStoreKey reports whether a metadata property name is the "actorStateStore" property, which is matched case-insensitively.

func New

func New(opts Options) *state

Types

type Actors added in v1.18.3

type Actors interface {
	OnActorStateStoreChanged()
}

Actors is the subset of the actor runtime which is notified when a component becomes the actor state store.

type Options

type Options struct {
	Registry       *compstate.Registry
	ComponentStore *compstore.ComponentStore
	Meta           *meta.Meta
	ActorsEnabled  bool
	Outbox         outbox.Outbox
	Actors         Actors
}

Jump to

Keyboard shortcuts

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