Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HTTP Status Codes StatusProxyAuthRequired = 407 StatusBadGateway = 502 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertStorage ¶
type CertStorage struct {
// contains filtered or unexported fields
}
func NewCertStorage ¶
func NewCertStorage() *CertStorage
func (*CertStorage) Fetch ¶
func (cs *CertStorage) Fetch(hostname string, gen func() (*tls.Certificate, error)) (*tls.Certificate, error)
type ProxyChecker ¶
type ProxyChecker struct {
// contains filtered or unexported fields
}
func NewProxyChecker ¶
func NewProxyChecker(cfg *config.Config, proxyServer *ProxyServer) *ProxyChecker
func (*ProxyChecker) Check ¶
func (pl *ProxyChecker) Check() error
type ProxyHistory ¶
type ProxyLoader ¶
type ProxyLoader struct {
// contains filtered or unexported fields
}
func NewProxyLoader ¶
func NewProxyLoader(cfg *config.Config, proxyServer *ProxyServer) *ProxyLoader
func (*ProxyLoader) CreateProxy ¶
func (pl *ProxyLoader) CreateProxy(proxyURL string) (*Proxy, error)
func (*ProxyLoader) Load ¶
func (pl *ProxyLoader) Load() error
func (*ProxyLoader) Reload ¶
func (pl *ProxyLoader) Reload() error
type ProxyServer ¶
type ProxyServer struct {
sync.RWMutex
Proxies []*Proxy
ProxyHistory []ProxyHistory
// contains filtered or unexported fields
}
func NewProxyServer ¶
func NewProxyServer(cfg *config.Config) *ProxyServer
func (*ProxyServer) AddProxy ¶
func (ps *ProxyServer) AddProxy(proxy *Proxy)
func (*ProxyServer) Listen ¶
func (ps *ProxyServer) Listen()
Click to show internal directories.
Click to hide internal directories.