Add packages for the defaults
This commit is contained in:
14
broker/http/http.go
Normal file
14
broker/http/http.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/broker"
|
||||
"github.com/micro/go-micro/cmd"
|
||||
)
|
||||
|
||||
func init() {
|
||||
cmd.DefaultBrokers["http"] = NewBroker
|
||||
}
|
||||
|
||||
func NewBroker(addrs []string, opts ...broker.Option) broker.Broker {
|
||||
return broker.NewBroker(addrs, opts...)
|
||||
}
|
Reference in New Issue
Block a user