Add broker service to config/cmd

This commit is contained in:
Asim Aslam 2019-10-03 16:22:26 +01:00
parent 4de346920f
commit b80654bf7e

View File

@ -23,6 +23,7 @@ import (
"github.com/micro/go-micro/broker/http"
"github.com/micro/go-micro/broker/memory"
"github.com/micro/go-micro/broker/nats"
brokerSrv "github.com/micro/go-micro/broker/service"
// registries
"github.com/micro/go-micro/registry"
@ -179,6 +180,8 @@ var (
}
DefaultBrokers = map[string]func(...broker.Option) broker.Broker{
"go.micro.broker": brokerSrv.NewBroker,
"service": brokerSrv.NewBroker,
"http": http.NewBroker,
"memory": memory.NewBroker,
"nats": nats.NewBroker,