Versions in this module Expand all Collapse all v0 v0.8.698 Aug 29, 2017 Changes in this version + const TypeLogin + const TypeLoginResp + const TypeNewProxy + const TypeNewProxyResp + const TypeNewWorkConn + const TypePing + const TypePong + const TypeReqWorkConn + const TypeStartWorkConn + const TypeUdpPacket + var MaxMsgLength int32 = 10240 + var TypeMap map[byte]reflect.Type + var TypeStringMap map[reflect.Type]byte + func Pack(msg Message) ([]byte, error) + func ReadMsgInto(c io.Reader, msg Message) (err error) + func UnPackInto(buffer []byte, msg Message) (err error) + func WriteMsg(c io.Writer, msg interface{}) (err error) + type Login struct + Arch string + Hostname string + Os string + PoolCount int + PrivilegeKey string + RunId string + Timestamp int64 + User string + Version string + type LoginResp struct + Error string + RunId string + Version string + type Message interface + func ReadMsg(c io.Reader) (msg Message, err error) + func UnPack(typeByte byte, buffer []byte) (msg Message, err error) + type NewProxy struct + CustomDomains []string + FtpCfgProxyName string + HostHeaderRewrite string + HttpPwd string + HttpUser string + Locations []string + ProxyName string + ProxyType string + RemoteDataPort int64 + RemotePort int64 + RunId string + SubDomain string + UseCompression bool + UseEncryption bool + type NewProxyResp struct + Error string + ProxyName string + RemotePort int64 + RunId string + type NewWorkConn struct + RunId string + type Ping struct + type Pong struct + type ReqWorkConn struct + type StartWorkConn struct + ProxyName string + type UdpPacket struct + Content string + LocalAddr *net.UDPAddr + RemoteAddr *net.UDPAddr