17 lines
354 B
Go
17 lines
354 B
Go
|
// 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...)
|
||
|
}
|