15 lines
292 B
Go
15 lines
292 B
Go
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...)
|
|
}
|