Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomLocalPort ¶
func RandomLocalPort() string
Types ¶
type ForwardingSpec ¶
type ForwardingSpec struct {
LocalHost string // Defaults to "127.0.0.1" if not specified
LocalPort string // Empty if a random port is to be used
RemoteHost string // Defaults to ""
RemotePort string // Required, no default
}
func ParseLocal ¶
func ParseLocal(s string) (ForwardingSpec, error)
func (ForwardingSpec) LocalAddr ¶
func (f ForwardingSpec) LocalAddr() string
func (ForwardingSpec) RemoteAddr ¶
func (f ForwardingSpec) RemoteAddr() string
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
func StartTunnel ¶
func (*Tunnel) MarshalJSON ¶
func (*Tunnel) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.