Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmqpProviderInterface ¶
type AmqpProviderInterface interface { AmqpPublish(ctx context.Context, channel *amqp.Channel, routingKey string, amqpMsg amqp.Publishing, exchangeName string) error AmqpPublishWithConfirm(ctx context.Context, routingKey string, amqpMsg amqp.Publishing, exchangeName string) error CreateAmqpChannel(conn *amqp.Connection, confirm bool) (*amqp.Channel, chan amqp.Confirmation, error) CloseAmqpChannel(channel *amqp.Channel) error CloseConnection() error CreateConnectionPool() error CreateConsumer(channel *amqp.Channel, queueName, consumerTag string) (<-chan amqp.Delivery, error) DeclareQueue(channel *amqp.Channel, queueName string, declareQueueArgs amqp.Table) error DeclareExchange(channel *amqp.Channel, exchangeName string, exchangeType string) error GetConnectionFromPool() (interface{}, error) QueueExchangeBind(channel *amqp.Channel, queueName string, routingKey string, exchangeName string) error ReleaseConnectionToPool(interface{}) error SetChannelQoS(channel *amqp.Channel, prefetchCount int) error }
func NewAmqpProvider ¶
func NewAmqpProvider(amqpConfig *config.AMQPConfig) AmqpProviderInterface
Click to show internal directories.
Click to hide internal directories.