Add packages for the defaults

This commit is contained in:
Asim
2016-03-14 10:45:38 +00:00
parent c0b25e7a65
commit 71764564e7
5 changed files with 60 additions and 0 deletions

14
transport/http/http.go Normal file
View File

@@ -0,0 +1,14 @@
package http
import (
"github.com/micro/go-micro/cmd"
"github.com/micro/go-micro/transport"
)
func init() {
cmd.DefaultTransports["http"] = NewTransport
}
func NewTransport(addrs []string, opts ...transport.Option) transport.Transport {
return transport.NewTransport(addrs, opts...)
}