Example #1
0
func init() {
	// register rabbitmq
	broker.Register("amqp", &RabbitMqBroker{})
	broker.Register("amqps", &RabbitMqBroker{})
}
Example #2
0
func init() {
	// register nats
	broker.Register("nats", &Broker{})
}