Documentation ¶
Index ¶
- Constants
- type ChannelCloseListener
- type Config
- type Rabbit
- func (r *Rabbit) Close()
- func (r *Rabbit) CloseChannel(channel *amqp091.Channel)
- func (r *Rabbit) CreateChannel() (*amqp091.Channel, error)
- func (r *Rabbit) Disconnected() bool
- func (r *Rabbit) GetConfig() *Config
- func (r *Rabbit) SetChannelCloseListener(channel *amqp091.Channel, listener ChannelCloseListener)
Constants ¶
View Source
const ( Direct = "direct" Topic = "topic" Fanout = "fanout" Headers = "headers" )
View Source
const DefaultReconnectInterval = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelCloseListener ¶
type ChannelCloseListener func()
type Rabbit ¶
type Rabbit struct {
// contains filtered or unexported fields
}
func CreateRabbit ¶
func (*Rabbit) CloseChannel ¶
func (r *Rabbit) CloseChannel(channel *amqp091.Channel)
func (*Rabbit) CreateChannel ¶
func (*Rabbit) Disconnected ¶
func (*Rabbit) SetChannelCloseListener ¶
func (r *Rabbit) SetChannelCloseListener(channel *amqp091.Channel, listener ChannelCloseListener)
Click to show internal directories.
Click to hide internal directories.