Documentation
¶
Index ¶
- Constants
- type Queue
- func (q *Queue) DeclareDeadLetterQueue(key string) error
- func (q *Queue) DeclareQueue(name string) error
- func (q *Queue) GetChannelNotify() chan *amqp.Error
- func (q *Queue) GetChannelReturn() chan amqp.Return
- func (q *Queue) GetConnNotify() chan *amqp.Error
- func (q *Queue) GetDLMsg() (<-chan amqp.Delivery, error)
- func (q *Queue) GetMsg() (<-chan amqp.Delivery, error)
- func (q *Queue) GetMsgWithManualAck() (<-chan amqp.Delivery, error)
- func (q *Queue) GetQueueName() string
- func (q *Queue) Publish(key string, body []byte) error
- func (q *Queue) Reconnect() error
- func (q *Queue) SendDeadLetter(key string, body []byte, retry_count int32) error
- func (q *Queue) Subscribe(key string) error
Constants ¶
View Source
const ( QUEUE_NAME = "database_topics" EXCHANGE = "all_actions" DEAD_LETTER_EXCHANGE = "dl_all_actions" EXCHANGE_IMPORT = "data_migration" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
RabbitMQ client
func NewQueueWithParams ¶
func (*Queue) DeclareDeadLetterQueue ¶
func (*Queue) DeclareQueue ¶
func (*Queue) GetChannelNotify ¶
func (*Queue) GetChannelReturn ¶
func (*Queue) GetConnNotify ¶
func (*Queue) GetMsgWithManualAck ¶
func (*Queue) GetQueueName ¶
func (*Queue) SendDeadLetter ¶
Click to show internal directories.
Click to hide internal directories.