Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct {
Common struct {
Password string `toml:"password"`
LogPath string `toml:"log_path"`
} `toml:"common"`
Client struct {
PreConns int `toml:"pre_conns"`
Timeout duration `toml:"timeout"`
} `toml:"client"`
Server struct {
Network string `toml:"network"`
Address string `toml:"address"`
RootCA string `toml:"root_ca"`
} `toml:"server"`
Front struct {
Mode string `toml:"mode"`
Network string `toml:"network"`
Address string `toml:"address"`
Username string `toml:"username"`
Password string `toml:"password"`
} `toml:"front"`
}
ClientConfig contains configurations for proxy client.
type ServerConfig ¶
type ServerConfig struct {
Common struct {
PassHash string `toml:"pwd_hash"`
LogPath string `toml:"log_path"`
} `toml:"common"`
Server struct {
Network string `toml:"network"`
Address string `toml:"address"`
MaxConns int `toml:"max_conns"`
Timeout duration `toml:"timeout"`
} `toml:"server"`
TLS struct {
ServerCert string `toml:"server_cert"`
ServerKey string `toml:"server_key"`
} `toml:"tls"`
}
ServerConfig contains configurations for proxy server.
Click to show internal directories.
Click to hide internal directories.