...
1syntax = "proto3";
2
3package io.linkerd.proxy.grpc_route;
4option go_package = "github.com/linkerd/linkerd2-proxy-api/go/grpc_route";
5
6import "http_route.proto";
7
8message GrpcRouteMatch {
9 GrpcRpcMatch rpc = 1;
10
11 // A set of header value matches that must be satisified. This match is not
12 // comprehensive, so requests may include headers that are not covered by this
13 // match.
14 repeated io.linkerd.proxy.http_route.HeaderMatch headers = 2;
15}
16
17message GrpcRpcMatch {
18 string service = 1;
19 string method = 2;
20}
21
22// Configures a route to respond with a fixed response.
23message GrpcFailureInjector {
24 // The status code to use in the `grpc-status` response. Must be specified.
25 uint32 code = 1;
26
27 // An error message to log and include in the `grpc-message` header.
28 string message = 2;
29
30 // If specified, the rate of requests that should be failed. If not specified,
31 // ALL requests are failed.
32 io.linkerd.proxy.http_route.Ratio ratio = 3;
33}
View as plain text