Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
func (*PubSub) Subscribe ¶
func (b *PubSub) Subscribe(topic string) *Subscriber
func (*PubSub) Unsubscribe ¶
func (b *PubSub) Unsubscribe(s *Subscriber, topic string)
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber() *Subscriber
func (*Subscriber) Close ¶
func (s *Subscriber) Close()
func (*Subscriber) GetMessages ¶
func (s *Subscriber) GetMessages() <-chan *Message
type Subscribers ¶
type Subscribers map[string]*Subscriber
Click to show internal directories.
Click to hide internal directories.