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 Proxy ¶
type Proxy struct { Config *proxyconfig.Config URL *url.URL // contains filtered or unexported fields }
Proxy struct is a struct that contains all the information needed to run a proxy.
func NewProxy ¶
func NewProxy(log zerolog.Logger, pcfg *proxyconfig.Config, proxyProvider proxyproviders.Provider, targetprovider targetproviders.TargetProvider, ) (*Proxy, error)
NewProxy function is a function that creates a new proxy.
func (*Proxy) StartRedirectServer ¶
StartRedirectServer method is a method that starts http rediret server to https.
Click to show internal directories.
Click to hide internal directories.