Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefEvtHub *eventhub.EventHub
View Source
var DefPublisherPID *actor.PID
Functions ¶
Types ¶
type ActorPublisher ¶
var DefActorPublisher *ActorPublisher
func NewActorPublisher ¶
func NewActorPublisher(publisher *actor.PID, evtHub ...*eventhub.EventHub) *ActorPublisher
func (*ActorPublisher) Publish ¶
func (this *ActorPublisher) Publish(topic string, msg interface{})
func (*ActorPublisher) PublishEvent ¶
func (this *ActorPublisher) PublishEvent(evt *eventhub.Event)
type ActorSubscriber ¶
func NewActorSubscriber ¶
func NewActorSubscriber(subscriber *actor.PID, evtHub ...*eventhub.EventHub) *ActorSubscriber
func (*ActorSubscriber) Subscribe ¶
func (this *ActorSubscriber) Subscribe(topic string)
func (*ActorSubscriber) Unsubscribe ¶
func (this *ActorSubscriber) Unsubscribe(topic string)
Click to show internal directories.
Click to hide internal directories.