Versions in this module Expand all Collapse all v0 v0.1.1 Apr 1, 2017 Changes in this version + func GetToken(remoteUrl, account string, password string) (string, error) + type ClientInterface interface + Command func(host url.URL, account, password, shell string, channel chan<- []byte) + type JsonResult struct + Command string + Data interface{} + ErrorCode int + Message string + MsgId string + type SSHClient struct + func (p *SSHClient) Command(host url.URL, account, password, shell string, channel chan<- []byte) + func (p *SSHClient) Connection(user, host, pass string) (*ssh.Client, *ssh.Session, error) + type WebHookClient struct + func (c *WebHookClient) Close() + func (c *WebHookClient) Read() ([]byte, error) + func (c *WebHookClient) ReadJSON(v interface{}) error + func (c *WebHookClient) Send(msg []byte) error + func (c *WebHookClient) SendJSON(v interface{}) error + func (c *WebHookClient) SetCloseHandler(h func(code int, text string) error) + func (p *WebHookClient) Command(host url.URL, account, password, shell string, channel chan<- []byte) + func (p *WebHookClient) Connection(remoteUrl string, token string) (*WebHookClient, error)