Documentation ¶
Index ¶
- type Actable
- type Action
- type ActionsHandler
- type Actor
- type ActorInfo
- type Context
- type Event
- type Mailboxes
- type Manager
- func (manager *Manager) GetActorInfos() []*ActorInfo
- func (manager *Manager) RegisterActor(actable Actable) *Actor
- func (manager *Manager) Request(actorIdentifier string, eventName string, params map[string]interface{}) error
- func (manager *Manager) Setup()
- func (manager *Manager) Tell(actorIdentifier string, eventName string, params map[string]interface{})
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actable ¶
type Actable interface { GetActorIdentifier() string RegisterActorActions(*ActionsHandler) }
Actable is the interface for all models implementing actor model
type ActionsHandler ¶
type ActionsHandler struct {
// contains filtered or unexported fields
}
ActionsHandler used to mange callbacks for controllers
func (*ActionsHandler) RegisterAction ¶
func (handler *ActionsHandler) RegisterAction(actionName string, action Action)
RegisterAction used to register action
type Actor ¶
type Actor struct {
// contains filtered or unexported fields
}
Actor is the base representation of actor in actor model
func (*Actor) Identifier ¶ added in v0.0.25
Identifier used to identify mailbox's address of actor
type ActorInfo ¶ added in v0.0.46
type ActorInfo struct {
// contains filtered or unexported fields
}
func (*ActorInfo) Identifier ¶ added in v0.0.46
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context used to represent actor execution context with data
func (*Context) ParamsBool ¶ added in v0.0.72
ParamsBool used to retrieve params value in bool
func (*Context) ParamsFloat64 ¶ added in v0.0.62
ParamsFloat64 used to retrieve params value in float64
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is singleton manager for actor module
func (*Manager) GetActorInfos ¶ added in v0.0.46
GetActorInfos used to return all registered actors
func (*Manager) RegisterActor ¶
RegisterActor used to creating an actor instance for model
Click to show internal directories.
Click to hide internal directories.