micro-broker-nats/nats.go
2021-01-29 18:14:34 +03:00

17 lines
335 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/cmd"
)
func init() {
cmd.DefaultBrokers["nats"] = NewBroker
}
func NewBroker(opts ...broker.Option) broker.Broker {
return nats.NewBroker(opts...)
}