Documentation ¶
Index ¶
- type ActorRunTimedeprecated
- func (r *ActorRunTime) Deactivate(actorTypeName, actorID string) actorErr.ActorErrdeprecated
- func (r *ActorRunTime) GetJSONSerializedConfig() ([]byte, error)deprecated
- func (r *ActorRunTime) InvokeActorMethod(actorTypeName, actorID, actorMethod string, payload []byte) ([]byte, actorErr.ActorErr)deprecated
- func (r *ActorRunTime) InvokeReminder(actorTypeName, actorID, reminderName string, params []byte) actorErr.ActorErrdeprecated
- func (r *ActorRunTime) InvokeTimer(actorTypeName, actorID, timerName string, params []byte) actorErr.ActorErrdeprecated
- func (r *ActorRunTime) RegisterActorFactory(f actor.Factory, opt ...config.Option)deprecated
- type ActorRunTimeContext
- func (r *ActorRunTimeContext) Deactivate(ctx context.Context, actorTypeName, actorID string) actorErr.ActorErr
- func (r *ActorRunTimeContext) GetJSONSerializedConfig() ([]byte, error)
- func (r *ActorRunTimeContext) InvokeActorMethod(ctx context.Context, actorTypeName, actorID, actorMethod string, ...) ([]byte, actorErr.ActorErr)
- func (r *ActorRunTimeContext) InvokeReminder(ctx context.Context, actorTypeName, actorID, reminderName string, ...) actorErr.ActorErr
- func (r *ActorRunTimeContext) InvokeTimer(ctx context.Context, actorTypeName, actorID, timerName string, params []byte) actorErr.ActorErr
- func (r *ActorRunTimeContext) RegisterActorFactory(f actor.FactoryContext, opt ...config.Option)
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 (*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 (*ActorRunTimeContext) GetJSONSerializedConfig ¶ added in v1.8.0
func (r *ActorRunTimeContext) GetJSONSerializedConfig() ([]byte, error)
func (*ActorRunTimeContext) InvokeActorMethod ¶ added in v1.8.0
func (*ActorRunTimeContext) InvokeReminder ¶ added in v1.8.0
func (*ActorRunTimeContext) InvokeTimer ¶ added in v1.8.0
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.