Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string
AddrHTTP string
Auth AuthFunc
Load LoadFunc
TraffIn TraffFunc
TraffOut TraffFunc
}
Config describes the configuration information for the server.
type Loader ¶
type Loader interface {
Proxy(p proxy.Proxy) error
ProxyTCP(id string, port int) error
ProxyHTTP(id, domain string) error
}
Loader is used to load proxy.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server combination net.Listener and vhost.Muxer, manage all proxies. Listen to the client's connection and the user's http connection. The load function loads the proxy using lazy load mode.
Click to show internal directories.
Click to hide internal directories.