proxyproviders

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 3 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 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

Directories

Path Synopsis
SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT

Jump to

Keyboard shortcuts

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