Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "1.0.3"
Variables ¶
View Source
var HttpClient = &http.Client{ Transport: &http.Transport{ MaxIdleConnsPerHost: 1024, IdleConnTimeout: 0, ExpectContinueTimeout: 1 * time.Second, TLSHandshakeTimeout: 0, TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, }, Proxy: nil, }, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Tunnels []*TunnelConfig `yaml:"tunnels"`
}
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
tunnel definition
func NewTunnel ¶
func NewTunnel(config *TunnelConfig) *Tunnel
type TunnelConfig ¶
type TunnelConfig struct {
Remote string `yaml:"remote"`
Local string `yaml:"local"`
Host string `yaml:"host"`
Secret string `yaml:"secret"`
Root string `yaml:"root"` // static files root
Index []string `yaml:"index"` // default index page filenames
// contains filtered or unexported fields
}
func (*TunnelConfig) LocalHost ¶
func (this *TunnelConfig) LocalHost() string
func (*TunnelConfig) LocalScheme ¶
func (this *TunnelConfig) LocalScheme() string
func (*TunnelConfig) Validate ¶
func (this *TunnelConfig) Validate() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.