Documentation
¶
Index ¶
- type ActorRunTime
- func (r *ActorRunTime) Deactivate(actorTypeName, actorID string) actorErr.ActorErr
- func (r *ActorRunTime) GetJSONSerializedConfig() ([]byte, error)
- func (r *ActorRunTime) InvokeActorMethod(actorTypeName, actorID, actorMethod string, payload []byte) ([]byte, actorErr.ActorErr)
- func (r *ActorRunTime) InvokeReminder(actorTypeName, actorID, reminderName string, params []byte) actorErr.ActorErr
- func (r *ActorRunTime) InvokeTimer(actorTypeName, actorID, timerName string, params []byte) actorErr.ActorErr
- func (r *ActorRunTime) RegisterActorFactory(f actor.Factory, opt ...config.Option)
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 (*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.
Click to show internal directories.
Click to hide internal directories.