Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupCloseHandler ¶
func SetupCloseHandler(consumer *Consumer)
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(ctx context.Context, cfgs RabbitmqProConf) *Producer
type RabbitmqConConf ¶
type RabbitmqConConf struct { Address string `yaml:"Address"` Exchange string `yaml:"Exchange"` ExchangeType string `yaml:"ExchangeType"` Queue string `yaml:"Queue"` BindingKey string `yaml:"BindingKey"` ConsumerTag string `yaml:"ConsumerTag"` LifeTime int `yaml:"LifeTime"` VerBose bool `yaml:"VerBose"` AutoACK bool `yaml:"AutoACK"` }
type RabbitmqProConf ¶
type RabbitmqProConf struct { Address string `yaml:"Address"` Exchange string `yaml:"Exchange"` ExchangeType string `yaml:"ExchangeType"` Queue string `yaml:"Queue"` BindingKey string `yaml:"BindingKey"` ConsumerTag string `yaml:"ConsumerTag"` RoutingKey string `yaml:"RoutingKey"` LifeTime int `yaml:"LifeTime"` AutoACK bool `yaml:"AutoACK"` }
Click to show internal directories.
Click to hide internal directories.