Documentation
¶
Index ¶
- func BoundQueueToExchange(rabbit *RabbitRep, routingKey string) error
- func CreateExchange(rabbit *RabbitRep) error
- func Receive(rabbit *RabbitRep, queueName string, function RabbitFunction)
- func Send(rabbit *RabbitRep, data string, ct string) error
- type RabbitExchange
- type RabbitFunction
- type RabbitQueue
- type RabbitRep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundQueueToExchange ¶
func CreateExchange ¶
func Receive ¶
func Receive(rabbit *RabbitRep, queueName string, function RabbitFunction)
Types ¶
type RabbitExchange ¶
type RabbitFunction ¶ added in v0.1.4
type RabbitFunction func([]byte)
type RabbitQueue ¶
type RabbitRep ¶
type RabbitRep struct {
Connection *amqp091.Connection
Exchange *RabbitExchange
Channel *amqp091.Channel
QueueInstance []amqp091.Queue
}
func InitializeRabbit ¶
func InitializeRabbit(uri string, exchange RabbitExchange, queues []RabbitQueue) (*RabbitRep, error)
Click to show internal directories.
Click to hide internal directories.