proxy_handler

package
v0.0.0-...-edad312 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package proxy_handler is a thread that manages the service proxies

Index

Constants

View Source
const (
	Category = "proxy_handler" // handler category

	SetProxyChain       = "set-proxy-chain"         // SetProxyChain is a route command that sets a new proxy chain
	SetUnits            = "set-units"               // route command that sets the proxy units
	ProxyChainsByLastId = "proxy-chains-by-last-id" // returns list of proxy chains by the id of the last proxy
	Units               = "units"                   // route command that returns a list of destination units for a rule
	LastProxies         = "last-proxies"            // that returns a list of last proxies in the proxy chains.
	StartLastProxies    = "start-last-proxies"      // route command that starts all proxies
	ProxyChainByRule    = "proxy-chain-by-rule"     // route command that returns a proxy chains by the rule
	ProxyChains         = "proxy-chains"            // returns list of proxy chains
)

Variables

This section is empty.

Functions

func HandlerConfig

func HandlerConfig(serviceId string) *handlerConfig.Handler

HandlerConfig creates a configuration of the thread

func Id

func Id(id string) string

Id of the proxy handler based on the service id

Types

type ProxyHandler

type ProxyHandler struct {
	*base.Handler
	// contains filtered or unexported fields
}

func New

func New(engine configClient.Interface, depClient dep_client.Interface) *ProxyHandler

New returns a proxy handler

func (*ProxyHandler) Route

func (proxyHandler *ProxyHandler) Route(string, any, ...string) error

The Route is over-written to be disabled.

func (*ProxyHandler) SetServiceId

func (proxyHandler *ProxyHandler) SetServiceId(id string)

SetServiceId notifies the proxy handler with the service where it's belonged too.

func (*ProxyHandler) Start

func (proxyHandler *ProxyHandler) Start() error

Start starts the proxy handler as a new thread

Jump to

Keyboard shortcuts

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