add tunnel/transport package

This commit is contained in:
Asim Aslam
2019-08-07 21:58:25 +01:00
parent fc379f2d2c
commit a894b4f354
4 changed files with 151 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import (
// and Micro-Tunnel-Session header. The tunnel id is a hash of
// the address being requested.
type Tunnel interface {
Init(opts ...Option) error
// Connect connects the tunnel
Connect() error
// Close closes the tunnel