Documentation
¶
Index ¶
- Constants
- func NewBroker(opts *broker.Options) broker.Broker
- type Consumer
- func (cr *Consumer) GroupID() string
- func (cr *Consumer) SetDurableQueue(durableQueue bool)
- func (cr *Consumer) SetHeaders(headers map[string]interface{})
- func (cr *Consumer) SetQueueArgs(queueArgs map[string]interface{})
- func (cr *Consumer) Subscribe(topic string, handler broker.Handler) error
- func (cr *Consumer) Topic() string
- func (cr *Consumer) Unsubscribe() error
- type Event
- type Producer
Constants ¶
View Source
const ( TOPIC = "topic" DELAYED = "x-delayed-message" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func (*Consumer) SetDurableQueue ¶
func (*Consumer) SetHeaders ¶
func (*Consumer) SetQueueArgs ¶
func (*Consumer) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.