Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenConnection ¶
func OpenConnection(addr string) (*amqp.Connection, error)
OpenConnection connect to rabbitmq
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel data channel
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer define consumer for rabbitmq
func NewConsumer ¶
func NewConsumer(addr, exchange, queueName string, autoDelete bool, handler func(body []byte) error) *Consumer
NewConsumer instance a consumer
Click to show internal directories.
Click to hide internal directories.