Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSubscriber ¶
func NewSubscriber(config *Config, topic string, consumeFunc subscriber.ConsumeFunc) (subscriber.Subscriber, error)
Types ¶
type Config ¶
type MultiSubscriber ¶
type MultiSubscriber struct {
// contains filtered or unexported fields
}
Subscriber to manage multiple subscribers
func NewMultiSubscriber ¶
func NewMultiSubscriber(config *Config) *MultiSubscriber
func (*MultiSubscriber) Close ¶
func (s *MultiSubscriber) Close() error
func (*MultiSubscriber) Subscribe ¶
func (s *MultiSubscriber) Subscribe(topic string, consumeFunc subscriber.ConsumeFunc) error
Click to show internal directories.
Click to hide internal directories.