Versions in this module Expand all Collapse all v1 v1.0.0 Apr 9, 2022 Changes in this version + const TypeCloseProxy + const TypeLogin + const TypeLoginResp + const TypeNatHoleClient + const TypeNatHoleClientDetectOK + const TypeNatHoleResp + const TypeNatHoleSid + const TypeNatHoleVisitor + const TypeNewProxy + const TypeNewProxyResp + const TypeNewVisitorConn + const TypeNewVisitorConnResp + const TypeNewWorkConn + const TypePing + const TypePong + const TypeReqWorkConn + const TypeStartWorkConn + const TypeUDPPacket + func ReadMsgInto(c io.Reader, msg Message) (err error) + func WriteMsg(c io.Writer, msg interface{}) (err error) + type CloseProxy struct + ProxyName string + type Login struct + Arch string + Hostname string + Metas map[string]string + Os string + PoolCount int + PrivilegeKey string + RunID string + Timestamp int64 + User string + Version string + type LoginResp struct + Error string + RunID string + ServerUDPPort int + Version string + type Message = jsonMsg.Message + func ReadMsg(c io.Reader) (msg Message, err error) + type NatHoleClient struct + ProxyName string + Sid string + type NatHoleClientDetectOK struct + type NatHoleResp struct + ClientAddr string + Error string + Sid string + VisitorAddr string + type NatHoleSid struct + Sid string + type NatHoleVisitor struct + ProxyName string + SignKey string + Timestamp int64 + type NewProxy struct + CustomDomains []string + Group string + GroupKey string + HTTPPwd string + HTTPUser string + Headers map[string]string + HostHeaderRewrite string + Locations []string + Metas map[string]string + Multiplexer string + ProxyName string + ProxyType string + RemotePort int + Sk string + SubDomain string + UseCompression bool + UseEncryption bool + type NewProxyResp struct + Error string + ProxyName string + RemoteAddr string + type NewVisitorConn struct + ProxyName string + SignKey string + Timestamp int64 + UseCompression bool + UseEncryption bool + type NewVisitorConnResp struct + Error string + ProxyName string + type NewWorkConn struct + PrivilegeKey string + RunID string + Timestamp int64 + type Ping struct + PrivilegeKey string + Timestamp int64 + type Pong struct + Error string + type ReqWorkConn struct + type StartWorkConn struct + DstAddr string + DstPort uint16 + Error string + ProxyName string + SrcAddr string + SrcPort uint16 + type UDPPacket struct + Content string + LocalAddr *net.UDPAddr + RemoteAddr *net.UDPAddr