Rough outline of tunnel types

This commit is contained in:
Milos Gajdos
2019-08-06 11:45:25 +01:00
parent 000431f489
commit 4074cce397
4 changed files with 97 additions and 7 deletions

View File

@@ -19,9 +19,11 @@ const (
type Tunnel interface {
// Id returns tunnel id
Id() string
// Options returns the tunnel options
Options() Options
// Address returns tunnel address
Address() string
// Tramsport returns tunnel transport
// Transport to use by tunne clients
Transport() transport.Transport
// Connect connects the tunnel
Connect() error