micro-broker-nats/nats.go

17 lines
342 B
Go
Raw Normal View History

// Package memory provides a memory broker
package memory
2015-11-25 03:16:12 +03:00
import (
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/broker/nats"
"github.com/micro/go-micro/v2/config/cmd"
2015-11-25 03:16:12 +03:00
)
func init() {
2016-01-02 22:25:20 +03:00
cmd.DefaultBrokers["nats"] = NewBroker
2015-11-25 03:16:12 +03:00
}
2016-03-16 13:08:10 +03:00
func NewBroker(opts ...broker.Option) broker.Broker {
return nats.NewBroker(opts...)
2015-11-25 03:16:12 +03:00
}