add broker references to go-micor

This commit is contained in:
Asim Aslam 2019-11-11 08:23:21 +00:00 committed by Vasiliy Tolstov
commit afeda7f642

16
service.go Normal file
View File

@ -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...)
}