From 3b7c7d76ed1a2fd1106528a8f8d5a64816540448 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sun, 10 Nov 2019 20:06:31 +0000 Subject: [PATCH] add all the transports --- quic.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 quic.go diff --git a/quic.go b/quic.go new file mode 100644 index 0000000..e8dac66 --- /dev/null +++ b/quic.go @@ -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...) +}