runtime

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorRunTime

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

func GetActorRuntimeInstance

func GetActorRuntimeInstance() *ActorRunTime

GetActorRuntimeInstance gets or create runtime instance.

func NewActorRuntime

func NewActorRuntime() *ActorRunTime

NewActorRuntime creates an empty ActorRuntime.

func (*ActorRunTime) Deactivate

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

func (*ActorRunTime) GetJSONSerializedConfig

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

func (*ActorRunTime) InvokeActorMethod

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

func (*ActorRunTime) InvokeReminder

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

func (*ActorRunTime) InvokeTimer

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

func (*ActorRunTime) RegisterActorFactory

func (r *ActorRunTime) RegisterActorFactory(f actor.Factory, 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