Links above Dial/Listen in interface

This commit is contained in:
Asim Aslam 2019-09-11 12:49:27 -07:00
parent 634c55e2d7
commit ec6a30be37

View File

@ -31,12 +31,12 @@ type Tunnel interface {
Connect() error
// Close closes the tunnel
Close() error
// All the links the tunnel is connected to
Links() []Link
// Connect to a channel
Dial(channel string, opts ...DialOption) (Session, error)
// Accept connections on a channel
Listen(channel string) (Listener, error)
// All the links the tunnel is connected to
Links() []Link
// Name of the tunnel implementation
String() string
}