Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpProxyHandler ¶ added in v1.6.2
func (*HttpProxyHandler) ServeHTTP ¶ added in v1.6.2
func (h *HttpProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RequestAddr ¶ added in v1.1.0
type RequestAddr struct { Host string Port string Key string Network string Timestamp string Random string }
The Request address struct
func (*RequestAddr) MarshalBinary ¶ added in v1.1.0
func (r *RequestAddr) MarshalBinary() ([]byte, error)
MarshalBinary marshals the RequestAddr
func (*RequestAddr) UnmarshalBinary ¶ added in v1.1.0
func (r *RequestAddr) UnmarshalBinary(data []byte) error
UmarshalBinary unmarshals the RequestAddr
type TCPServer ¶ added in v1.5.9
type TCPServer struct { Config config.Config Tproxy *TCPProxy Uproxy *UDPProxy UDPConn *net.UDPConn Listener net.Listener }
The tcp server struct
Click to show internal directories.
Click to hide internal directories.