Versions in this module Expand all Collapse all v0 v0.53.9 Dec 22, 2023 v0.53.8 Dec 22, 2023 v0.53.7 Dec 22, 2023 v0.53.6 Dec 16, 2023 v0.53.5 Dec 16, 2023 v0.53.4 Dec 16, 2023 v0.53.3 Dec 16, 2023 v0.53.2 Dec 16, 2023 Changes in this version + const TypeCloseProxy + const TypeLogin + const TypeLoginResp + const TypeNatHoleClient + const TypeNatHoleReport + 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 + var TypeNameNatHoleResp = reflect.TypeOf(&NatHoleResp{}).Elem().Name() + func AsyncHandler(f func(Message)) func(Message) + func Pack(msg interface{}) (data []byte, err error) + func ReadMsgInto(c io.Reader, msg Message) (err error) + func WriteMsg(c io.Writer, msg interface{}) (err error) + type ClientSpec struct + AlwaysAuthPass bool + Type string + type CloseProxy struct + ProxyName string + type Dispatcher struct + func NewDispatcher(rw io.ReadWriter) *Dispatcher + func (d *Dispatcher) Done() chan struct{} + func (d *Dispatcher) RegisterDefaultHandler(handler func(Message)) + func (d *Dispatcher) RegisterHandler(msg Message, handler func(Message)) + func (d *Dispatcher) Run() + func (d *Dispatcher) Send(m Message) error + func (d *Dispatcher) SendChannel() chan Message + type Login struct + Arch string + ClientSpec ClientSpec + 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 + Version string + type Message = jsonMsg.Message + func ReadMsg(c io.Reader) (msg Message, err error) + type NatHoleClient struct + AssistedAddrs []string + MappedAddrs []string + ProxyName string + Sid string + TransactionID string + type NatHoleDetectBehavior struct + CandidatePorts []PortsRange + ListenRandomPorts int + Mode int + ReadTimeoutMs int + Role string + SendDelayMs int + SendRandomPorts int + TTL int + type NatHoleReport struct + Sid string + Success bool + type NatHoleResp struct + AssistedAddrs []string + CandidateAddrs []string + DetectBehavior NatHoleDetectBehavior + Error string + Protocol string + Sid string + TransactionID string + type NatHoleSid struct + Nonce string + Response bool + Sid string + TransactionID string + type NatHoleVisitor struct + AssistedAddrs []string + MappedAddrs []string + PreCheck bool + Protocol string + ProxyName string + SignKey string + Timestamp int64 + TransactionID string + type NewProxy struct + AllowUsers []string + BandwidthLimit string + BandwidthLimitMode string + 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 + RouteByHTTPUser string + Sk string + SubDomain string + UseCompression bool + UseEncryption bool + type NewProxyResp struct + Error string + ProxyName string + RemoteAddr string + type NewVisitorConn struct + ProxyName string + RunID 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 PortsRange struct + From int + To int + 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