linkerd2_proxy_api/gen/
io.linkerd.proxy.grpc_route.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct GrpcRouteMatch {
4    #[prost(message, optional, tag = "1")]
5    pub rpc: ::core::option::Option<GrpcRpcMatch>,
6    /// A set of header value matches that must be satisified. This match is not
7    /// comprehensive, so requests may include headers that are not covered by this
8    /// match.
9    #[prost(message, repeated, tag = "2")]
10    pub headers: ::prost::alloc::vec::Vec<super::http_route::HeaderMatch>,
11}
12#[derive(Clone, PartialEq, ::prost::Message)]
13pub struct GrpcRpcMatch {
14    #[prost(string, tag = "1")]
15    pub service: ::prost::alloc::string::String,
16    #[prost(string, tag = "2")]
17    pub method: ::prost::alloc::string::String,
18}
19/// Configures a route to respond with a fixed response.
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct GrpcFailureInjector {
22    /// The status code to use in the `grpc-status` response. Must be specified.
23    #[prost(uint32, tag = "1")]
24    pub code: u32,
25    /// An error message to log and include in the `grpc-message` header.
26    #[prost(string, tag = "2")]
27    pub message: ::prost::alloc::string::String,
28    /// If specified, the rate of requests that should be failed. If not specified,
29    /// ALL requests are failed.
30    #[prost(message, optional, tag = "3")]
31    pub ratio: ::core::option::Option<super::http_route::Ratio>,
32}