Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent tunnels local socks stream to the server.
func NewAgent ¶
func NewAgent(cfg *AgentConfig) (*Agent, error)
type AgentConfig ¶
type AgentConfig struct {
AuthKey string // auth key when registering to the server
ServerAddress string // server address, e.g. 127.0.0.1:443
CaFile string // ca file
CertFile string // cert file used in mtls
KeyFile string // key file used in mtls
LocalAddress string // local address to listen on for local socks proxy service
LockFile string // lock file to prevent multiple agent instances
LogFile string
LogLevel string
EnableTLS bool // enable mtls
}
AgentConfig is the configuration of agent.
Click to show internal directories.
Click to hide internal directories.