Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscriber ¶
type Subscriber struct {
bindings.PubSubChannel
}
Subscriber's channel(nfrvr)
func NewSubscriber ¶
func NewSubscriber(conn *amqp.Connection) (*Subscriber, error)
Create a freshly-baked subscriber
func (*Subscriber) Close ¶
func (s *Subscriber) Close() error
Function to make consumer stop consuming early
func (*Subscriber) StartSubscriberFunc ¶
func (s *Subscriber) StartSubscriberFunc(sp SubscriberPackage) (func(chan amqp.Delivery), error)
Returns a function which takes in a chan, that should be placed in goroutine
Click to show internal directories.
Click to hide internal directories.