Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorMap ¶
type ActorMap struct { Events chan ActorState // contains filtered or unexported fields }
ActorMap holds a map of actors->status and keep it in sync by subscribing to actor events
func NewActorMap ¶
NewActorMap initialize the map and starts listening
func (*ActorMap) List ¶
func (am *ActorMap) List() (list []ActorState)
List returns the list of actors
func (*ActorMap) ListOnline ¶
ListOnline returns a list of online actors
type ActorState ¶
ActorState is emitted by the ActorMap when a actor status changes
Click to show internal directories.
Click to hide internal directories.