Vasiliy Tolstov
72d07c504c
* broker: update to micro broker changes Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
17 lines
342 B
Go
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...)
|
|
}
|