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
Types ¶
type ProxyHandler ¶
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
Click to show internal directories.
Click to hide internal directories.