Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectProxyServerQUIC ¶
func ConnectProxyServerQUIC(addr, target string) quic.Stream
func IoCopy ¶
func IoCopy(src io.ReadCloser, dst io.WriteCloser)
Types ¶
type BaseLocalServer ¶
type BaseLocalServer interface { Listen() error //a block function Stop() error Config(config *LocalServerConfig) Remote(remote remote.BaseRemote) }
type HttpLocalServer ¶
type HttpLocalServer struct { Conf *LocalServerConfig RetryCount int // contains filtered or unexported fields }
func (*HttpLocalServer) Config ¶
func (h *HttpLocalServer) Config(c *LocalServerConfig)
func (*HttpLocalServer) Remote ¶
func (h *HttpLocalServer) Remote(r remote.BaseRemote)
func (*HttpLocalServer) SetLocalPort ¶
func (l *HttpLocalServer) SetLocalPort(port int)
SetLocalPort 在服务器关闭的时候修改端口
type IpLimit ¶
type IpLimit struct {
// contains filtered or unexported fields
}
IpLimit 国内IP范围加载到程序中的结构
type LocalServerConfig ¶
type LocalServerConfig struct { Port int Host string Pac bool //true:智能代理 , false: 全局代理 OnListenError func(error) }
func (*LocalServerConfig) ListenAddress ¶
func (l *LocalServerConfig) ListenAddress() string
Click to show internal directories.
Click to hide internal directories.