Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrListenerClosed = errors.New("tunneler: Listener closed")
ErrListenerClosed is returned by Accept after Close has been called.
Functions ¶
func NewTunneler ¶
func NewTunneler() *tunneler
func SyncerTunnelURL ¶
syncerTunnelURL builds the destination url with the Dialer expected format of the URL.
Types ¶
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
The Dialer can create new connections back to the origin. A Dialer can have multiple clients.
func NewDialer ¶
NewDialer returns the side of the connection which will initiate new connections over the already established reverse connections.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener is a net.Listener, returning new connections which arrive from a corresponding Dialer.
func NewListener ¶
NewListener returns a new Listener, it dials to the Dialer creating "reverse connection" that are accepted by this Listener. - client: http client, required for TLS - url: a URL to the base of the reverse handler on the Dialer.