Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(label string, logger *zap.SugaredLogger) *Manager
func (*Manager) Create ¶
Create a new subscriber for a given topic. It returns the newly created subscriber and a blocking channel indicating whether there are any subscribers left for the passed topic.
func (*Manager) Get ¶
func (m *Manager) Get(topic string) []*Subscriber
Get returns all subscribers associated with the topic.
type Subscriber ¶
type Subscriber struct { Notifier *rpc.Notifier Subscription *rpc.Subscription Topic string }
func (*Subscriber) Notify ¶
func (s *Subscriber) Notify(data interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.