Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2021-09-13 15:04:19 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2021-09-13 17:09:48 +0300
commit34537cd08b3a7892b0111cb90df6848bd52adb1d (patch)
tree7a622819e9b2711ebd1831b9a5973ea23bedf95f /proto/lint.proto
parentabdd0e85e26d55377e6627bb3db0f820131c5929 (diff)
proto: Support marking RPC methods as intercepted
Praefect currently supports marking an entire service as being intercepted. When a service is intercepted, it's not required to have operation type annotations which are used for proxying as they are not needed. This commit adds support for marking a single method from a service as intercepted. This allows for dropping annotations for methods which do not get proxied.
Diffstat (limited to 'proto/lint.proto')
-rw-r--r--proto/lint.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/lint.proto b/proto/lint.proto
index ff7c21728..572cc6c7f 100644
--- a/proto/lint.proto
+++ b/proto/lint.proto
@@ -40,6 +40,9 @@ extend google.protobuf.ServiceOptions {
extend google.protobuf.MethodOptions {
// Random high number..
OperationMsg op_type = 82303;
+ // intercepted_method indicates whether the proxy intercepts and handles the method call
+ // instead of proxying. Intercepted methods do not require operation type annotations.
+ bool intercepted_method = 82304;
}
extend google.protobuf.FieldOptions {