Links above Dial/Listen in interface
This commit is contained in:
parent
634c55e2d7
commit
ec6a30be37
@ -31,12 +31,12 @@ type Tunnel interface {
|
|||||||
Connect() error
|
Connect() error
|
||||||
// Close closes the tunnel
|
// Close closes the tunnel
|
||||||
Close() error
|
Close() error
|
||||||
|
// All the links the tunnel is connected to
|
||||||
|
Links() []Link
|
||||||
// Connect to a channel
|
// Connect to a channel
|
||||||
Dial(channel string, opts ...DialOption) (Session, error)
|
Dial(channel string, opts ...DialOption) (Session, error)
|
||||||
// Accept connections on a channel
|
// Accept connections on a channel
|
||||||
Listen(channel string) (Listener, error)
|
Listen(channel string) (Listener, error)
|
||||||
// All the links the tunnel is connected to
|
|
||||||
Links() []Link
|
|
||||||
// Name of the tunnel implementation
|
// Name of the tunnel implementation
|
||||||
String() string
|
String() string
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user