Documentation
¶
Index ¶
- func DeclareAndBind(conn *amqp.Connection, exchange, queueName, key string, ...) (*amqp.Channel, amqp.Queue, error)
- func PublishGob[T any](ch *amqp.Channel, exchange, key string, val T) error
- func SubscribeGob[T any](conn *amqp.Connection, exchange, queueName, key string, ...) error
- type AckType
- type QueueDurability
- type QueueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeclareAndBind ¶
func DeclareAndBind( conn *amqp.Connection, exchange, queueName, key string, queueDurability QueueDurability, ) (*amqp.Channel, amqp.Queue, error)
func PublishGob ¶
publishers do not create queues since they work directly with exhances withot knowing even about queues
func SubscribeGob ¶
func SubscribeGob[T any]( conn *amqp.Connection, exchange, queueName, key string, queueDurability QueueDurability, handler func(T) AckType, ) error
Types ¶
type QueueDurability ¶
type QueueDurability int
const ( QueueDurable QueueDurability = iota QueueTranscient )
Click to show internal directories.
Click to hide internal directories.