T
T
Tokenchik2020-01-24 13:49:55
go
Tokenchik, 2020-01-24 13:49:55

How to specify parameters when creating a new queue?

How to pass additional parameters to go using the github.com/streadway/amqp package to create a new queue - x-dead-letter-exchange:test-queue, x-dead-letter-routing-key:test-queue

q, err := ch.QueueDeclare(
    "test-queue",
    true,
    false,
    false,
    false,
    nil, //передавать параметры тут
  )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-01-24
@Tokenchik

type Table map[string]interface{}
Well, take it and send it in text form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question