Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface { StartSocks5Proxy(privateKey, sshAddress, socks5Address string) error ForwardRemoteToLocal(privateKey, sshAddress, remoteEndpoint, localEndpoint string) error RunScript(privateKey, sshAddress, script string) (string, error) }
Channel network channel
type Cli ¶
type Cli struct{}
Cli the singleton type
func (*Cli) ForwardRemoteToLocal ¶
func (c *Cli) ForwardRemoteToLocal(privateKey, sshAddress, remoteEndpoint, localEndpoint string) error
ForwardRemoteToLocal forward remote request to local
func (*Cli) StartSocks5Proxy ¶
StartSocks5Proxy start socks5 proxy
type SocksLogger ¶
type SocksLogger struct{}
func (SocksLogger) Println ¶
func (s SocksLogger) Println(v ...any)
Click to show internal directories.
Click to hide internal directories.