Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoServer ¶
type EchoServer struct {
// contains filtered or unexported fields
}
EchoServer 内置 Echo 服务器,用于测试代理连通性 不依赖外部网络,完全本地化测试
func (*EchoServer) Stats ¶
func (s *EchoServer) Stats() (requests, bytesIn, bytesOut int64)
Stats 返回统计信息
type HTTPEchoServer ¶
type HTTPEchoServer struct {
// contains filtered or unexported fields
}
HTTPEchoServer HTTP Echo 服务器(更简单的版本)
func NewHTTPEchoServer ¶
func NewHTTPEchoServer(port int) *HTTPEchoServer
NewHTTPEchoServer 创建 HTTP Echo 服务器
type TCPEchoServer ¶
type TCPEchoServer struct {
// contains filtered or unexported fields
}
TCPEchoServer TCP Echo 服务器
func NewTCPEchoServer ¶
func NewTCPEchoServer(port int) *TCPEchoServer
NewTCPEchoServer 创建 TCP Echo 服务器
Click to show internal directories.
Click to hide internal directories.