pub struct Proxy {
pub management_server: Vec<Endpoint>,
pub mmdb: Option<Source>,
pub port: u16,
pub qcmp_port: u16,
pub to: Vec<SocketAddr>,
pub idle_request_interval_secs: u64,
pub workers: Option<NonZeroUsize>,
}
Expand description
Run Quilkin as a UDP reverse proxy.
Fields§
§management_server: Vec<Endpoint>
One or more quilkin manage
endpoints to listen to for config changes
mmdb: Option<Source>
The remote URL or local file path to retrieve the Maxmind database.
port: u16
The port to listen on.
qcmp_port: u16
The port to listen on.
to: Vec<SocketAddr>
One or more socket addresses to forward packets to.
idle_request_interval_secs: u64
The interval in seconds at which the relay will send a discovery request to an management server after receiving no updates.
workers: Option<NonZeroUsize>
Number of worker threads used to process packets. If not specified defaults to number of cpus.
Implementations§
Trait Implementations§
source§impl FromArgMatches for Proxy
impl FromArgMatches for Proxy
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for Proxy
impl !RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl !UnwindSafe for Proxy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request