gotunnelme

package
v0.0.0-...-4ff17d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Functions

This section is empty.

Types

type AssignedUrlInfo

type AssignedUrlInfo struct {
	Id           string `json:"id,omitempty"`
	Url          string `json:"url,omitempty"`
	Port         int    `json:"port,omitempty"`
	MaxConnCount int    `json:"max_conn_count,omitempty"`
}

func GetAssignedUrl

func GetAssignedUrl(assignedDomain string) (*AssignedUrlInfo, error)

type Tunnel

type Tunnel struct {
	// contains filtered or unexported fields
}

func NewTunnel

func NewTunnel() *Tunnel

func (*Tunnel) CreateTunnel

func (self *Tunnel) CreateTunnel(localAddress string, localPort int) error

func (*Tunnel) GetUrl

func (self *Tunnel) GetUrl(assignedDomain string) (string, error)

func (*Tunnel) StopTunnel

func (self *Tunnel) StopTunnel()

type TunnelCommand

type TunnelCommand int

type TunnelConn

type TunnelConn struct {
	// contains filtered or unexported fields
}

func NewTunnelConn

func NewTunnelConn(remoteHost string, remotePort int, localAddress string, localPort int) *TunnelConn

func (*TunnelConn) StopTunnel

func (self *TunnelConn) StopTunnel() error

func (*TunnelConn) Tunnel

func (self *TunnelConn) Tunnel(replyCh chan<- int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL