Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_MAXX_RECONNECT_TIMES = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerConfig ¶ added in v0.2.0
type ProducerConfig ¶ added in v0.2.0
type RabbitInterface ¶
type RabbitInterface interface {
Connect() (RabbitInterface, error)
GetConnect() *rbm_pool
SimpleQueueDeclare(sq SimpleQueue) (queue amqp.Queue, err error)
Producer(ctx context.Context, pc *ProducerConfig, msg *Message) error
Consumer(cc *ConsumerConfig, callback func(msg *amqp.Delivery))
StartConsumer(cc *ConsumerConfig, callback func(msg *amqp.Delivery))
}
func New ¶ added in v0.1.1
func New(conf *config.Config) RabbitInterface
Click to show internal directories.
Click to hide internal directories.