diff options
author | John Cai <jcai@gitlab.com> | 2019-11-22 04:09:00 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-11-22 04:09:00 +0300 |
commit | 1ba1693d6024dffa2e4ee8092dd87a06ddeb959a (patch) | |
tree | d93d9cf95c0adcb5ae633f6f85dd0b3be58d9ffd /proto/praefect.proto | |
parent | da257b59a5d74b0f94a4a493d0ef94e226c951c4 (diff) |
Add Praefect service
Diffstat (limited to 'proto/praefect.proto')
-rw-r--r-- | proto/praefect.proto | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/proto/praefect.proto b/proto/praefect.proto new file mode 100644 index 000000000..d0ba4d8cb --- /dev/null +++ b/proto/praefect.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package gitaly; + +option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"; + +import "shared.proto"; + +service InfoService { + rpc ListRepositories(ListRepositoriesRequest) returns (stream ListRepositoriesResponse) { + option (op_type) = { + op: ACCESSOR + scope_level: SERVER + }; + } +} + +message ListRepositoriesRequest{} + +message ListRepositoriesResponse{ + message RepositoryDetails { + Repository repository = 1; + string checksum = 2; + }; + + RepositoryDetails primary = 1; + repeated RepositoryDetails replicas = 2; +} |