Vasiliy Tolstov
9726c08736
* fix import path for v2 release Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
17 lines
363 B
Go
17 lines
363 B
Go
// Package service provides the broker service client
|
|
package service
|
|
|
|
import (
|
|
"github.com/micro/go-micro/v2/broker"
|
|
"github.com/micro/go-micro/v2/broker/service"
|
|
"github.com/micro/go-micro/v2/config/cmd"
|
|
)
|
|
|
|
func init() {
|
|
cmd.DefaultBrokers["service"] = NewBroker
|
|
}
|
|
|
|
func NewBroker(opts ...broker.Option) broker.Broker {
|
|
return service.NewBroker(opts...)
|
|
}
|