proxy

package
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 11 Imported by: 0

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) Close

func (proxy *Proxy) Close() error

Close method is a method that closes the proxy.

func (*Proxy) Start

func (proxy *Proxy) Start()

Start method is a method that starts the proxy.

func (*Proxy) StartRedirectServer

func (proxy *Proxy) StartRedirectServer() error

StartRedirectServer method is a method that starts http rediret server to https.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL