Documentation
¶
Index ¶
- type CoreProxy
- func (cp *CoreProxy) Cleanup() error
- func (cp *CoreProxy) HandlePathUsage(w http.ResponseWriter, r *http.Request) error
- func (cp *CoreProxy) HandlePolicyPath(w http.ResponseWriter, r *http.Request) error
- func (cp *CoreProxy) HandleResolveHost(w http.ResponseWriter, r *http.Request) error
- func (cp *CoreProxy) HandleResolveURL(w http.ResponseWriter, r *http.Request) error
- func (cp *CoreProxy) HandleTunnelRequest(w http.ResponseWriter, r *http.Request) error
- func (cp *CoreProxy) Initialize() error
- type HTTPHandler
- type ResolveHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreProxy ¶
type CoreProxy struct {
// contains filtered or unexported fields
}
CoreProxy handles the core proxy logic.
func NewCoreProxy ¶
func NewCoreProxy(logger *zap.Logger, resolveTimeout, dialTimeout, purgeTimeout, purgeInterval time.Duration, disablePurgeInactive bool) *CoreProxy
NewCoreProxy creates a new CoreProxy instance.
func (*CoreProxy) HandlePathUsage ¶
func (*CoreProxy) HandlePolicyPath ¶
func (*CoreProxy) HandleResolveHost ¶
func (*CoreProxy) HandleResolveURL ¶
func (*CoreProxy) HandleTunnelRequest ¶
func (*CoreProxy) Initialize ¶
Initialize initializes the core proxy logic.
type HTTPHandler ¶
type HTTPHandler interface {
ServeHTTP(w http.ResponseWriter, r *http.Request) error
}
HTTPHandler is an interface for handling HTTP requests.
type ResolveHandler ¶
type ResolveHandler interface { HandleRedirectBackOrError(w http.ResponseWriter, r *http.Request) error HandleHostResolutionRequest(w http.ResponseWriter, r *http.Request) error }
ResolveHandler defines an interface for handling HTTP requests related to host resolution and redirection. Implementations of this interface should provide mechanisms to handle redirection back or errors, as well as host resolution requests.
Click to show internal directories.
Click to hide internal directories.