2019-11-11 11:23:21 +03:00
|
|
|
// Package service provides the broker service client
|
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
2020-01-31 01:26:39 +03:00
|
|
|
"github.com/micro/go-micro/v2/broker"
|
|
|
|
"github.com/micro/go-micro/v2/broker/service"
|
2020-07-14 23:27:09 +03:00
|
|
|
"github.com/micro/go-micro/v2/cmd"
|
2019-11-11 11:23:21 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cmd.DefaultBrokers["service"] = NewBroker
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewBroker(opts ...broker.Option) broker.Broker {
|
|
|
|
return service.NewBroker(opts...)
|
|
|
|
}
|