proxymanager

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 ProxyList added in v0.4.0

type ProxyList map[string]*proxy.Proxy

type ProxyManager

type ProxyManager struct {
	Proxies ProxyList

	TargetProviders TargetProviderList
	ProxyProviders  ProxyProviderList
	// contains filtered or unexported fields
}

ProxyManager struct stores data that is required to manage all proxies

func NewProxyManager

func NewProxyManager(logger zerolog.Logger) *ProxyManager

NewProxyManager function creates a new ProxyManager.

func (*ProxyManager) HandleContainerEvent

func (pm *ProxyManager) HandleContainerEvent(event targetproviders.TargetEvent)

HandleContainerEvent method handles events from a targetprovider

func (*ProxyManager) Start added in v1.0.0

func (pm *ProxyManager) Start()

Start method starts the ProxyManager.

func (*ProxyManager) StopAllProxies added in v1.0.0

func (pm *ProxyManager) StopAllProxies()

StopAllProxies method shuts down all proxies.

func (*ProxyManager) WatchEvents added in v1.0.0

func (pm *ProxyManager) WatchEvents()

WatchEvents method watches for events from all target providers.

type ProxyProviderList added in v1.0.0

type ProxyProviderList map[string]proxyproviders.Provider

type TargetProviderList added in v1.0.0

type TargetProviderList map[string]targetproviders.TargetProvider

Jump to

Keyboard shortcuts

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