Beispiel #1
0
func setExchange(q *anyq.Rabbitmq) {
	log.Println("declaring Exchange: ", ex)
	if err := q.ExchangeDeclare(ex, "direct", false, false, false, false, nil); err != nil {
		log.Fatal(err)
	}
	log.Println("declared Exchange")
}
Beispiel #2
0
Datei: main.go Projekt: mpls/anyq
func setExchange(q *anyq.Rabbitmq) {
	log.Println("declaring Exchange: ", *exchange)
	if err := q.ExchangeDeclare(*exchange, *exchangeType, false, false, false, false, nil); err != nil {
		log.Fatal(err)
	}
	log.Println("declared Exchange")
}