package event import ( amqp "github.com/rabbitmq/amqp091-go" ) func declaireExchange(ch *amqp.Channel) error { return ch.ExchangeDeclare( "logs_topic", // name "topic", // type true, // durable? false, // auto-deleted? false, // internal? false, // no-wait? nil, // arguments? ) } func declaireRandomQueue(ch *amqp.Channel) (amqp.Queue, error) { return ch.QueueDeclare( "", // name false, // durable false, // delete when unused true, // exclusive false, // nowait nil, // table ) }