Struct polaris_specification::v1::DestinationGroup
source · pub struct DestinationGroup {
pub service: String,
pub namespace: String,
pub labels: HashMap<String, MatchString>,
pub priority: u32,
pub weight: u32,
pub transfer: String,
pub isolate: bool,
pub name: String,
}
Fields§
§service: String
Templated service and namespace
namespace: String
§labels: HashMap<String, MatchString>
Templated service example label Value supports regular matching
priority: u32
According to the service name and service instance Metadata Filter the qualified service instance subset Service instance subset can set priority and weight Priority: integer, range [0, 9], the highest priority is 0 Weight: Integer Press priority routing, if there is high priority, low priority will not use If there is a subset of the same priority, then assign by weight Priority and weight can be not set / set up one / set two If the section is set priority, some are not set, it is considered that the priority is not set. If the part is set, some is not set, it is considered that the weight is not set to 0 If you have no weight, you think the weight is the same
weight: u32
§transfer: String
Forward requests to proxy service
isolate: bool
Whether to isolate the SET, after isolation, no traffic will be allocated
name: String
name desition name
Trait Implementations§
source§impl Clone for DestinationGroup
impl Clone for DestinationGroup
source§fn clone(&self) -> DestinationGroup
fn clone(&self) -> DestinationGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DestinationGroup
impl Debug for DestinationGroup
source§impl Default for DestinationGroup
impl Default for DestinationGroup
source§impl Message for DestinationGroup
impl Message for DestinationGroup
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<DestinationGroup> for DestinationGroup
impl PartialEq<DestinationGroup> for DestinationGroup
source§fn eq(&self, other: &DestinationGroup) -> bool
fn eq(&self, other: &DestinationGroup) -> bool
self
and other
values to be equal, and is used
by ==
.