2019-11-10 23:06:31 +03:00
|
|
|
// Package quic provides a QUIC based transport
|
|
|
|
package quic
|
|
|
|
|
|
|
|
import (
|
2020-01-31 01:26:39 +03:00
|
|
|
"github.com/micro/go-micro/v2/config/cmd"
|
|
|
|
"github.com/micro/go-micro/v2/transport"
|
|
|
|
"github.com/micro/go-micro/v2/transport/quic"
|
2019-11-10 23:06:31 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cmd.DefaultTransports["quic"] = NewTransport
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewTransport(opts ...transport.Option) transport.Transport {
|
|
|
|
return quic.NewTransport(opts...)
|
|
|
|
}
|