Adds outline of go-micro Tunnel interface

This commit is contained in:
Milos Gajdos
2019-08-05 17:52:57 +01:00
parent 2e67e23a23
commit e1ecd728c5
2 changed files with 78 additions and 0 deletions

15
tunnel/tunnel.go Normal file
View File

@@ -0,0 +1,15 @@
// Package tunnel provides micro network tunnelling
package tunnel
import (
"github.com/micro/go-micro/transport"
)
// Tunnel creates a p2p network tunnel.
type Tunnel interface {
transport.Transport
// Connect connects the tunnel
Connect() error
// Close closes the tunnel
Close() error
}