Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
NewProxy(cfg *proxyconfig.Config) (ProxyInterface, error)
}
Proxy interface for each proxy provider
type ProxyEvent ¶ added in v1.4.0
type ProxyEvent struct {
AuthURL string
State proxyconfig.ProxyState
}
type ProxyInterface ¶ added in v1.3.2
type ProxyInterface interface {
Start(context.Context) error
Close() error
NewListener(network, addr string) (net.Listener, error)
NewTLSListener(network, addr string) (net.Listener, error)
GetURL() string
GetAuthURL() string
WatchEvents() chan ProxyEvent
}
ProxyInterface interface for each proxy
Click to show internal directories.
Click to hide internal directories.