runtime

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorRunTime deprecated

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

Deprecated: use ActorRunTimeContext instead.

func GetActorRuntimeInstance

func GetActorRuntimeInstance() *ActorRunTime

GetActorRuntimeInstance gets or create runtime instance. Deprecated: use GetActorRuntimeInstanceContext instead.

func NewActorRuntime

func NewActorRuntime() *ActorRunTime

NewActorRuntime creates an empty ActorRuntime. Deprecated: use NewActorRuntimeContext instead.

func (*ActorRunTime) Deactivate deprecated

func (r *ActorRunTime) Deactivate(actorTypeName, actorID string) actorErr.ActorErr

Deprecated: use ActorRunTimeContext instead.

func (*ActorRunTime) GetJSONSerializedConfig deprecated

func (r *ActorRunTime) GetJSONSerializedConfig() ([]byte, error)

Deprecated: use ActorRunTimeContext instead.

func (*ActorRunTime) InvokeActorMethod deprecated

func (r *ActorRunTime) InvokeActorMethod(actorTypeName, actorID, actorMethod string, payload []byte) ([]byte, actorErr.ActorErr)

Deprecated: use ActorRunTimeContext instead.

func (*ActorRunTime) InvokeReminder deprecated

func (r *ActorRunTime) InvokeReminder(actorTypeName, actorID, reminderName string, params []byte) actorErr.ActorErr

Deprecated: use ActorRunTimeContext instead.

func (*ActorRunTime) InvokeTimer deprecated

func (r *ActorRunTime) InvokeTimer(actorTypeName, actorID, timerName string, params []byte) actorErr.ActorErr

Deprecated: use ActorRunTimeContext instead.

func (*ActorRunTime) RegisterActorFactory deprecated

func (r *ActorRunTime) RegisterActorFactory(f actor.Factory, opt ...config.Option)

Deprecated: use ActorRunTimeContext instead.

type ActorRunTimeContext added in v1.8.0

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

func GetActorRuntimeInstanceContext added in v1.8.0

func GetActorRuntimeInstanceContext() *ActorRunTimeContext

GetActorRuntimeInstanceContext gets or create runtime instance.

func NewActorRuntimeContext added in v1.8.0

func NewActorRuntimeContext() *ActorRunTimeContext

NewActorRuntimeContext creates an empty ActorRuntimeContext.

func (*ActorRunTimeContext) Deactivate added in v1.8.0

func (r *ActorRunTimeContext) Deactivate(ctx context.Context, actorTypeName, actorID string) actorErr.ActorErr

func (*ActorRunTimeContext) GetJSONSerializedConfig added in v1.8.0

func (r *ActorRunTimeContext) GetJSONSerializedConfig() ([]byte, error)

func (*ActorRunTimeContext) InvokeActorMethod added in v1.8.0

func (r *ActorRunTimeContext) InvokeActorMethod(ctx context.Context, actorTypeName, actorID, actorMethod string, payload []byte) ([]byte, actorErr.ActorErr)

func (*ActorRunTimeContext) InvokeReminder added in v1.8.0

func (r *ActorRunTimeContext) InvokeReminder(ctx context.Context, actorTypeName, actorID, reminderName string, params []byte) actorErr.ActorErr

func (*ActorRunTimeContext) InvokeTimer added in v1.8.0

func (r *ActorRunTimeContext) InvokeTimer(ctx context.Context, actorTypeName, actorID, timerName string, params []byte) actorErr.ActorErr

func (*ActorRunTimeContext) RegisterActorFactory added in v1.8.0

func (r *ActorRunTimeContext) RegisterActorFactory(f actor.FactoryContext, opt ...config.Option)

RegisterActorFactory registers the given actor factory from user, and create new actor manager if not exists.

Jump to

Keyboard shortcuts

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