1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-06-06 22:16:11 +02:00

15 lines
337 B
Go
Raw Permalink Normal View History

2021-06-08 21:26:14 +03:00
package rabbit
// DeclareTopicExchange declares an exchange of type 'topic'.
func (conn *Conn) DeclareTopicExchange(name string) error {
return conn.Channel.ExchangeDeclare(
name, // name
"topic", // type
true, // durable
false, // auto-deleted
false, // internal
false, // no-wait
nil, // arguments
)
}