Versions in this module Expand all Collapse all v0 v0.61.0 Nov 6, 2024 v0.60.0 Sep 27, 2024 v0.59.0 Jul 11, 2024 v0.58.1 Jul 4, 2024 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 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 + Annotations map[string]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 + ResponseHeaders map[string]string + 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