micro-broker-nats/nats.go
Vasiliy Tolstov 72d07c504c broker error handler support and interface changes (#501)
* broker: update to micro broker changes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 18:14:34 +03:00

17 lines
342 B
Go

// Package memory provides a memory broker
package memory
import (
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/broker/nats"
"github.com/micro/go-micro/v2/config/cmd"
)
func init() {
cmd.DefaultBrokers["nats"] = NewBroker
}
func NewBroker(opts ...broker.Option) broker.Broker {
return nats.NewBroker(opts...)
}