Documentation
¶
Index ¶
Constants ¶
View Source
const WpadTemplate = `` /* 288-byte string literal not displayed */
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ProxyServer ¶
type ProxyServer struct {
Interface configuration.InterfaceConfig
Global *configuration.GlobalConfig
Listener *net.TCPListener
Http *http.Server
Log *log.Entry
Proxy *goproxy.ProxyHttpServer
}
func NewProxy ¶
func NewProxy(iface configuration.InterfaceConfig, global *configuration.GlobalConfig, logger *log.Entry) (*ProxyServer, error)
func (ProxyServer) Start ¶
func (p ProxyServer) Start() error
func (ProxyServer) Stop ¶
func (p ProxyServer) Stop() error
type Server ¶
type Server struct {
Interface configuration.InterfaceConfig
Listener *net.TCPListener
Http *http.Server
Log *log.Entry
WpadFile string
ReverseProxies map[string]httputil.ReverseProxy
Proxy *ProxyServer
}
func New ¶
func New(iface configuration.InterfaceConfig, global *configuration.GlobalConfig, logger *log.Entry) (*Server, error)
Click to show internal directories.
Click to hide internal directories.