Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Debug debug log flag
Functions ¶
This section is empty.
Types ¶
type Channel ¶
Channel amqp.Channel wapper
type Connection ¶
type Connection struct { *amqp.Connection // contains filtered or unexported fields }
Connection amqp.Connection wrapper
func Dial ¶
func Dial(url string) (*Connection, error)
Dial wrap amqp.Dial, dial and get a reconnect connection
func (*Connection) Channel ¶
func (c *Connection) Channel() (*Channel, error)
Channel wrap amqp.Connection.Channel, get a auto reconnect channel
func (*Connection) OnChannelFail ¶
func (c *Connection) OnChannelFail(f func(e *amqp.Error))
func (*Connection) OnChannelRestore ¶
func (c *Connection) OnChannelRestore(f func())
func (*Connection) OnConnectionFail ¶
func (c *Connection) OnConnectionFail(f func(e *amqp.Error))
func (*Connection) OnReconnect ¶
func (c *Connection) OnReconnect(f func())
Click to show internal directories.
Click to hide internal directories.