Struct spacegate_kernel::config::http_route_dto::SgBackendRef
source · pub struct SgBackendRef {
pub name_or_host: String,
pub namespace: Option<String>,
pub port: u16,
pub timeout_ms: Option<u64>,
pub protocol: Option<SgProtocol>,
pub weight: Option<u16>,
pub filters: Option<Vec<SgRouteFilter>>,
}Expand description
BackendRef defines how a HTTPRoute should forward an HTTP request.
Fields§
§name_or_host: StringName is the kubernetes service name OR url host.
namespace: Option<String>Namespace is the kubernetes namespace
port: u16Port specifies the destination port number to use for this resource.
timeout_ms: Option<u64>Timeout specifies the timeout for requests forwarded to the referenced backend.
protocol: Option<SgProtocol>§weight: Option<u16>Weight specifies the proportion of requests forwarded to the referenced backend. This is computed as weight/(sum of all weights in this BackendRefs list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. Weight is not a percentage and the sum of weights does not need to equal 100.
filters: Option<Vec<SgRouteFilter>>Filters define the filters that are applied to backend that match this hostnames.
Trait Implementations§
source§impl Clone for SgBackendRef
impl Clone for SgBackendRef
source§fn clone(&self) -> SgBackendRef
fn clone(&self) -> SgBackendRef
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more