statestore

package
v1.15.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorMetadata

type ActorMetadata struct {
	ID                string                 `json:"id"`
	RemindersMetadata ActorRemindersMetadata `json:"actorRemindersMetadata"`
	Etag              *string                `json:"-"`
}

ActorMetadata represents information about the actor type.

type ActorReminderReference

type ActorReminderReference struct {
	ActorMetadataID           string
	ActorRemindersPartitionID uint32
	Reminder                  api.Reminder
}

type ActorRemindersMetadata

type ActorRemindersMetadata struct {
	PartitionCount int                `json:"partitionCount"`
	PartitionsEtag map[uint32]*string `json:"-"`
}

ActorRemindersMetadata represents information about actor's reminders.

type Options

type Options struct {
	StateStore actorstate.Backend
	Resiliency resiliency.Provider
	Table      table.Interface
	StoreName  string
	APILevel   *apilevel.APILevel
}

type Statestore

type Statestore struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Statestore

New returns a reminders provider.

func (*Statestore) Close

func (r *Statestore) Close() error

func (*Statestore) Create

func (*Statestore) Delete

func (*Statestore) DrainRebalancedReminders

func (r *Statestore) DrainRebalancedReminders()

func (*Statestore) Get

func (*Statestore) List

func (*Statestore) OnPlacementTablesUpdated

func (r *Statestore) OnPlacementTablesUpdated(ctx context.Context, fn func(context.Context, *api.LookupActorRequest) bool)

OnPlacementTablesUpdated is invoked when the actors runtime received an updated placement tables.

func (*Statestore) SetEngine

func (r *Statestore) SetEngine(engine engine.Interface)

TODO: :( Statestore option will be removed completely in v1.16

func (*Statestore) SetEntityConfigsRemindersStoragePartitions

func (r *Statestore) SetEntityConfigsRemindersStoragePartitions(entityConfigs map[string]api.EntityConfig, remindersStoragePartitions int)

TODO: :( Statestore option will be removed completely in v1.16

Jump to

Keyboard shortcuts

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