actors

package
v1.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateHostEnvironment added in v0.11.2

func ValidateHostEnvironment(mTLSEnabled bool, mode modes.DaprMode, namespace string) error

ValidateHostEnvironment validates that actors can be initialized properly given a set of parameters And the mode the runtime is operating in.

Types

type InitOptions

type InitOptions struct {
	StateStoreName string
	Hostname       string
	GRPC           *manager.Manager
}

type Interface

type Interface interface {
	Init(InitOptions) error
	Run(context.Context) error
	Engine(context.Context) (engine.Interface, error)
	Table(context.Context) (table.Interface, error)
	State(context.Context) (actorstate.Interface, error)
	Timers(context.Context) (timers.Interface, error)
	Reminders(context.Context) (reminders.Interface, error)
	RuntimeStatus() *runtimev1pb.ActorRuntime
	RegisterHosted(hostconfig.Config) error
	UnRegisterHosted(actorTypes ...string)
	WaitForRegisteredHosts(ctx context.Context) error
}

Interface is the main runtime for the actors subsystem.

func New

func New(opts Options) Interface

New create a new actors runtime with given config.

type Options

type Options struct {
	AppID              string
	Namespace          string
	Port               int
	PlacementAddresses []string
	SchedulerReminders bool
	HealthEndpoint     string
	Resiliency         resiliency.Provider
	Security           security.Handler
	SchedulerClients   *clients.Clients
	Healthz            healthz.Healthz
	CompStore          *compstore.ComponentStore
	// TODO: @joshvanl Remove in Dapr 1.12 when ActorStateTTL is finalized.
	StateTTLEnabled bool
}

Jump to

Keyboard shortcuts

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