Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Debug debug log flag
View Source
var Delay time.Duration = 3
Delay reconnect after delay seconds
Functions ¶
This section is empty.
Types ¶
type Channel ¶
Channel amqp.Channel wapper
type Connection ¶
type Connection struct {
*amqp.Connection
}
Connection amqp.Connection wrapper
func Dial ¶
func Dial(url string) (*Connection, error)
Dial wrap amqp.Dial, dial and get a reconnect connection
func DialConfig ¶
func DialConfig(url string, config amqp.Config) (*Connection, error)
DialConfig dial and get a reconnect connection with config
func (*Connection) Channel ¶
func (c *Connection) Channel() (*Channel, error)
Channel wrap amqp.Connection.Channel, get a auto reconnect channel
Click to show internal directories.
Click to hide internal directories.