blob: 748befbf648c8c4f33fb1cb4625933f71497d8aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
This file is a mock gRPC service used for validating the various types of
gRPC methods that Praefect is expected to reverse proxy. It is intended to keep
tests simple and keep Praefect decoupled from specific gRPC services.
*/
syntax = "proto3";
package mock;
option go_package = "gitlab.com/gitlab-org/gitaly/v14/internal/praefect/mock";
import "shared.proto";
import "lint.proto";
import "google/protobuf/empty.proto";
message RepoRequest {
gitaly.Repository repo = 1 [(gitaly.target_repository)=true];
}
service SimpleService {
// RepoAccessorUnary is a unary RPC that accesses a repo
rpc RepoAccessorUnary(RepoRequest) returns (google.protobuf.Empty) {
option (gitaly.op_type) = {
op: ACCESSOR
scope_level: REPOSITORY
};
}
// RepoMutatorUnary is a unary RPC that mutates a repo
rpc RepoMutatorUnary(RepoRequest) returns (google.protobuf.Empty) {
option (gitaly.op_type) = {
op: MUTATOR
scope_level: REPOSITORY
};
}
// RepoMaintenanceUnary is a unary RPC that maintains a repo
rpc RepoMaintenanceUnary(RepoRequest) returns (google.protobuf.Empty) {
option (gitaly.op_type) = {
op: MAINTENANCE
scope_level: REPOSITORY
};
}
}
|