Documentation ¶
Index ¶
- type CliProtocol
- type Client
- func (c *Client) Close() error
- func (c *Client) ConnectToSrv() error
- func (c *Client) DryRun() error
- func (c *Client) Exit()
- func (c *Client) GetExitChan() <-chan bool
- func (c *Client) HandleHttpProxy() error
- func (c *Client) HandleSSHProxy() error
- func (c *Client) IsConnValid() bool
- func (c *Client) Run() error
- type Conn
- type HttpProxy
- type Preparer
- type SSHProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliProtocol ¶
type CliProtocol struct {
Client *Client
}
func NewCliProtocol ¶
func NewCliProtocol(cli *Client) *CliProtocol
func (*CliProtocol) ExecCommand ¶
func (c *CliProtocol) ExecCommand(cmdType protocol.CommandType, params [][]byte) ([]byte, error)
func (*CliProtocol) IOLoop ¶
func (c *CliProtocol) IOLoop() error
type Client ¶
type Client struct { Hostname string Conn *Conn Conf *config.CliConf // contains filtered or unexported fields }
func (*Client) ConnectToSrv ¶
func (*Client) GetExitChan ¶
func (*Client) HandleHttpProxy ¶
func (*Client) IsConnValid ¶
type Conn ¶
func (*Conn) SendCommand ¶
func (c *Conn) SendCommand()
type HttpProxy ¶
type HttpProxy struct { Conf *config.ClientHttpProxyConf HttpProxyConn net.Conn ForwardHttpConn net.Conn ServIP string }
func NewHttpProxy ¶
func NewHttpProxy(servIP string, conf *config.ClientHttpProxyConf) *HttpProxy
func (*HttpProxy) ConnRemoteSrv ¶
Click to show internal directories.
Click to hide internal directories.