Expand description
rama proxy support
Modules§
- haproxy
- rama HaProxy support
Structs§
- Live
Update ProxyDB - A wrapper around a
T
ProxyDB
which can be updated through the only linked writerLiveUpdateProxyDBSetter
. - Live
Update ProxyDB Setter - Writer to set a new
ProxyDB
in the linkedLiveUpdateProxyDB
. - Memory
ProxyDB - A fast in-memory ProxyDatabase that is the default choice for Rama.
- Memory
ProxyDB Insert Error - The error type that can be returned by
MemoryProxyDB
when some of the proxies could not be inserted due to a proxy that had a duplicate key or was invalid for some other reason. - Memory
ProxyDB Query Error - The error type that can be returned by
MemoryProxyDB
when no proxy could be returned. - Proxy
- The selected proxy to use to connect to the proxy.
- Proxy
Context - The context as relevant to the proxy layer.
- Proxy
CsvRow Reader - A CSV Reader that can be used to create a
Proxy
database from a CSV file or raw data. - Proxy
CsvRow Reader Error - An error that can occur when reading a Proxy CSV row.
- ProxyDB
Layer - A
Layer
which wraps an innerService
to select aProxy
based on the givenContext
, and insert, if aProxy
is selected, it in theContext
for further processing. - ProxyDB
Service - A
Service
which selects aProxy
based on the givenContext
. - Proxy
Filter - Filter to select a specific kind of proxy.
- Proxy
Filter Username Parser - A parser which parses
ProxyFilter
s from username labels and adds it to theContext
’sExtensions
. - ProxyID
ID
of the selected proxy. To be inserted into theContext
, only if that proxy is selected.- String
Filter - A string filter that normalizes the string prior to consumption.
Enums§
- Memory
ProxyDB Insert Error Kind - The kind of error that
MemoryProxyDBInsertError
represents. - Memory
ProxyDB Query Error Kind - The kind of error that
MemoryProxyDBQueryError
represents. - Proxy
CsvRow Reader Error Kind - The kind of error that can occur when reading a Proxy CSV row.
- Proxy
Filter Mode - The modus operandi to decide how to deal with a missing
ProxyFilter
in theContext
when selecting aProxy
from theProxyDB
.
Traits§
- ProxyDB
- The trait to implement to provide a proxy database to other facilities,
such as connection pools, to provide a proxy based on the given
[
TransportContext
] andProxyFilter
. - Proxy
Query Predicate - Trait that is used by the
ProxyDB
for providing an optional filter predicate to rule out returned results. - Username
Formatter - Trait that is used to allow the formatting of a username, e.g. to allow proxy routers to have proxy config labels in the username.
Functions§
- proxy_
db_ updater - Create a new
ProxyDB
updater which allows you to have a (typically in-memory)ProxyDB
which you can update live.