Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶ added in v1.0.2
type Consumer struct {
// contains filtered or unexported fields
}
func NewSimpleConsumer ¶
NewSimpleConsumer 创建一个新的 Consumer 实例 url 示例: amqp://user:password@addr:5672/
func (*Consumer) OnConnectionErrorReConnection ¶ added in v1.0.2
func (c *Consumer) OnConnectionErrorReConnection()
OnConnectionErrorReConnection 连接错误,自动重连
type Producer ¶ added in v1.0.2
type Producer struct {
// contains filtered or unexported fields
}
func NewSimpleProducer ¶
NewSimpleProducer 创建一个新的 Producer 实例
func (*Producer) OnConnectionErrorReConnection ¶ added in v1.0.2
func (p *Producer) OnConnectionErrorReConnection()
OnConnectionErrorReConnection 监听连接错误,自动重连
Click to show internal directories.
Click to hide internal directories.