add all the transports

This commit is contained in:
Asim Aslam 2019-11-10 20:06:31 +00:00 committed by Vasiliy Tolstov
commit 3b7c7d76ed

16
quic.go Normal file
View File

@ -0,0 +1,16 @@
// Package quic provides a QUIC based transport
package quic
import (
"github.com/micro/go-micro/config/cmd"
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/transport/quic"
)
func init() {
cmd.DefaultTransports["quic"] = NewTransport
}
func NewTransport(opts ...transport.Option) transport.Transport {
return quic.NewTransport(opts...)
}