add all the transports
This commit is contained in:
commit
3b7c7d76ed
16
quic.go
Normal file
16
quic.go
Normal 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...)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user