1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Add nats broker as a default

This commit is contained in:
Asim Aslam
2019-05-29 16:46:57 +01:00
parent b4dc822ae3
commit 1200386097
5 changed files with 408 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import (
"github.com/micro/go-micro/broker"
"github.com/micro/go-micro/broker/http"
"github.com/micro/go-micro/broker/memory"
"github.com/micro/go-micro/broker/nats"
// registries
"github.com/micro/go-micro/registry"
@ -170,6 +171,7 @@ var (
DefaultBrokers = map[string]func(...broker.Option) broker.Broker{
"http": http.NewBroker,
"memory": memory.NewBroker,
"nats": nats.NewBroker,
}
DefaultClients = map[string]func(...client.Option) client.Client{