Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PSMQ ¶
type PSMQ struct {
// contains filtered or unexported fields
}
func (*PSMQ) CreatePublishTopic ¶
func (*PSMQ) SubscribeToTopic ¶
type PubSubAgent ¶
type PubSubAgent struct {
// contains filtered or unexported fields
}
Agent is a simple pub/sub agent
var SingleGoPubSubAgent *PubSubAgent
func NewPubSubAgent ¶
func NewPubSubAgent() *PubSubAgent
NewAgent creates a new Agent as a singleton, we do not create new agents over and over again
func (*PubSubAgent) Publish ¶
func (b *PubSubAgent) Publish(topic string, msg []byte)
Publish publishes a message to a topic
func (*PubSubAgent) Subscribe ¶
func (b *PubSubAgent) Subscribe(topic string) <-chan []byte
Subscribe subscribes to a topic
Click to show internal directories.
Click to hide internal directories.