pub struct ServiceArgs {Show 19 fields
pub(crate) pgwire_listen_addr: SocketAddr,
pub(crate) https_listen_addr: SocketAddr,
pub(crate) tls: TlsCliArgs,
pub(crate) internal_http_listen_addr: SocketAddr,
pub(crate) internal_tls: bool,
pub(crate) static_resolver_addr: Option<String>,
pub(crate) frontegg_resolver_template: Option<String>,
pub(crate) https_resolver_template: String,
pub(crate) cancellation_resolver_dir: Option<PathBuf>,
pub(crate) frontegg_jwk: Option<String>,
pub(crate) frontegg_jwk_file: Option<PathBuf>,
pub(crate) frontegg_api_token_url: Option<String>,
pub(crate) frontegg_admin_role: Option<String>,
pub(crate) launchdarkly_sdk_key: Option<String>,
pub(crate) config_sync_timeout: Duration,
pub(crate) config_sync_loop_interval: Option<Duration>,
pub(crate) cloud_provider: Option<String>,
pub(crate) cloud_provider_region: Option<String>,
pub(crate) default_config: Option<Vec<(String, String)>>,
}
Fields§
§pgwire_listen_addr: SocketAddr
§https_listen_addr: SocketAddr
§tls: TlsCliArgs
§internal_http_listen_addr: SocketAddr
§internal_tls: bool
Whether to initiate internal connections over TLS
static_resolver_addr: Option<String>
Static pgwire resolver address to use for local testing.
frontegg_resolver_template: Option<String>
Frontegg resolver address template. {}
is replaced with the user’s frontegg tenant id to
get a DNS address. The first IP that address resolves to is the proxy destinations.
https_resolver_template: String
HTTPS resolver address template. {}
is replaced with the first subdomain of the HTTPS SNI
host address to get a DNS address. The first IP that address resolves to is the proxy
destinations.
cancellation_resolver_dir: Option<PathBuf>
Cancellation resolver configmap directory. The org id part of the incoming connection id
(the 12 bits after (and excluding) the first bit) converted to a 3-char UUID string is
appended to this to make a file path. That file is read, and every newline-delimited line
there is DNS resolved, and all returned IPs get a mirrored cancellation request. The lines
in the file must be of the form host:port
.
frontegg_jwk: Option<String>
JWK used to validate JWTs during Frontegg authentication as a PEM public key. Can optionally be base64 encoded with the URL-safe alphabet.
frontegg_jwk_file: Option<PathBuf>
Path of JWK used to validate JWTs during Frontegg authentication as a PEM public key.
frontegg_api_token_url: Option<String>
The full URL (including path) to the Frontegg api-token endpoint.
frontegg_admin_role: Option<String>
The name of the admin role in Frontegg.
launchdarkly_sdk_key: Option<String>
An SDK key for LaunchDarkly.
Setting this will enable synchronization of LaunchDarkly features.
config_sync_timeout: Duration
The duration at which the LaunchDarkly synchronization times out during startup.
config_sync_loop_interval: Option<Duration>
The interval in seconds at which to synchronize LaunchDarkly values.
If this is not explicitly set, the loop that synchronizes LaunchDarkly will not run even if
Self::launchdarkly_sdk_key
is present (however one initial sync is always run).
cloud_provider: Option<String>
The cloud provider where the balancer is running.
cloud_provider_region: Option<String>
The cloud provider region where the balancer is running.
default_config: Option<Vec<(String, String)>>
Set startup defaults for dynconfig
Trait Implementations§
Source§impl Args for ServiceArgs
impl Args for ServiceArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for ServiceArgs
impl CommandFactory for ServiceArgs
Source§impl Debug for ServiceArgs
impl Debug for ServiceArgs
Source§impl FromArgMatches for ServiceArgs
impl FromArgMatches for ServiceArgs
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>
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>
ArgMatches
to self
.Source§impl Parser for ServiceArgs
impl Parser for ServiceArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ServiceArgs
impl RefUnwindSafe for ServiceArgs
impl Send for ServiceArgs
impl Sync for ServiceArgs
impl Unpin for ServiceArgs
impl UnwindSafe for ServiceArgs
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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>
T
in a tonic::Request
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Source§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
Source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.Source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.