Documentation ¶
Index ¶
- func BasicAuth(username, passwd string) string
- func GetProxyStatus(statusAddr string, user string, passwd string, name string) (status *client.ProxyStatusResp, err error)
- func ReloadConf(reloadAddr string, user string, passwd string) error
- func SendHTTPMsg(method, urlStr string, host string, headers map[string]string, proxy string) (code int, body string, header http.Header, err error)
- func SendTCPMsg(addr string, msg string) (res string, err error)
- func SendTCPMsgByConn(c net.Conn, msg string) (res string, err error)
- func SendUDPMsg(addr string, msg string) (res string, err error)
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProxyStatus ¶
func SendHTTPMsg ¶
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func (*Process) ErrorOutput ¶
func (*Process) SetBeforeStopHandler ¶
func (p *Process) SetBeforeStopHandler(fn func())
Click to show internal directories.
Click to hide internal directories.