tunnel

package
v0.0.0-...-d043590 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v1.0.0"

Functions

This section is empty.

Types

type CulvertConfig

type CulvertConfig struct {
	Tunnels []TunnelConfig `yaml:"tunnels"`
	Log     LogConfig      `yaml:"log"`
}

type HostConfig

type HostConfig struct {
	IP          string `yaml:"ip"`
	Port        int    `yaml:"port"`
	Username    string `yaml:"username"`
	Password    string `yaml:"password"`
	KeyFile     string `yaml:"keyFile"`
	KeyPassword string `yaml:"keyPassword"`
	KnownHost   string `yaml:"knownHost"`
}

type KeepaliveConfig

type KeepaliveConfig struct {
	Interval int `yaml:"interval"`
	CountMax int `yaml:"countMax"`
}

type LocalConfig

type LocalConfig struct {
	Bind string `yaml:"bind"`
	Port int    `yaml:"port"`
}

type LogConfig

type LogConfig struct {
	Path  string `yaml:"path"`
	Level string `yaml:"level"`
}

type RemoteConfig

type RemoteConfig struct {
	Bind string `yaml:"bind"`
	Port int    `yaml:"port"`
}

type TunnelConfig

type TunnelConfig struct {
	Name          string          `yaml:"name"`
	Mode          string          `yaml:"mode"`
	Host          HostConfig      `yaml:"host"`
	Keepalive     KeepaliveConfig `yaml:"keepalive"`
	Remote        RemoteConfig    `yaml:"remote"`
	Local         LocalConfig     `yaml:"local"`
	RetryInterval int             `yaml:"retryInterval"`
}

func (TunnelConfig) BindTunnel

func (t TunnelConfig) BindTunnel(ctx context.Context, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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