move implementations to external repos (#17)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-25 13:44:41 +03:00
committed by GitHub
parent c4a303190a
commit 0f4b1435d9
238 changed files with 151 additions and 37364 deletions

View File

@@ -3,10 +3,10 @@ package transport
import (
"context"
"fmt"
"github.com/unistack-org/micro/v3/transport"
"github.com/unistack-org/micro/v3/tunnel"
"github.com/unistack-org/micro/v3/tunnel/mucp"
)
type tunTransport struct {
@@ -32,7 +32,7 @@ func (t *tunTransport) Init(opts ...transport.Option) error {
// get the tunnel
tun, ok := t.options.Context.Value(tunnelKey{}).(tunnel.Tunnel)
if !ok {
tun = mucp.NewTunnel()
return fmt.Errorf("tunnel not set")
}
// get the transport