Add tunnel address

This commit is contained in:
Asim Aslam
2019-08-21 12:55:10 +01:00
parent 86f0c06fac
commit c2d85a6e1f
3 changed files with 14 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ import (
// the address being requested.
type Tunnel interface {
Init(opts ...Option) error
// Address the tunnel is listening on
Address() string
// Connect connects the tunnel
Connect() error
// Close closes the tunnel