Documentation ¶
Index ¶
- type Actable
- type Action
- type ActionsHandler
- type Actor
- type Context
- type Event
- type Mailboxes
- type Manager
- func (manager *Manager) RegisterActor(nsp string, 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 { GetID() 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 Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context used to represent context with data
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is singleton manager for actor module
func (*Manager) RegisterActor ¶
RegisterActor used to creating an actor instance for model
Click to show internal directories.
Click to hide internal directories.