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.