From afeda7f6428c271e8185d1ce9e7d59f9b97ee03c Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 11 Nov 2019 08:23:21 +0000 Subject: [PATCH] add broker references to go-micor --- service.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 service.go diff --git a/service.go b/service.go new file mode 100644 index 0000000..d5a20ec --- /dev/null +++ b/service.go @@ -0,0 +1,16 @@ +// Package service provides the broker service client +package service + +import ( + "github.com/micro/go-micro/broker" + "github.com/micro/go-micro/broker/service" + "github.com/micro/go-micro/config/cmd" +) + +func init() { + cmd.DefaultBrokers["service"] = NewBroker +} + +func NewBroker(opts ...broker.Option) broker.Broker { + return service.NewBroker(opts...) +}