2020-01-16 19:10:15 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2020-01-23 14:37:54 +03:00
|
|
|
service Config {
|
|
|
|
rpc Create (CreateRequest) returns (CreateResponse) {}
|
|
|
|
rpc Update (UpdateRequest) returns (UpdateResponse) {}
|
|
|
|
rpc Delete (DeleteRequest) returns (DeleteResponse) {}
|
|
|
|
rpc List (ListRequest) returns (ListResponse) {}
|
|
|
|
rpc Read (ReadRequest) returns (ReadResponse) {}
|
|
|
|
rpc Watch (WatchRequest) returns (stream WatchResponse) {}
|
2020-01-16 19:10:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message ChangeSet {
|
2020-03-14 00:44:55 +03:00
|
|
|
string data = 1;
|
2020-01-16 19:10:15 +03:00
|
|
|
string checksum = 2;
|
|
|
|
string format = 3;
|
|
|
|
string source = 4;
|
|
|
|
int64 timestamp = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Change {
|
2020-03-12 01:31:24 +03:00
|
|
|
string namespace = 1;
|
2020-01-16 19:10:15 +03:00
|
|
|
string path = 2;
|
|
|
|
ChangeSet changeSet = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateRequest {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
2020-01-18 18:16:23 +03:00
|
|
|
message CreateResponse {}
|
2020-01-16 19:10:15 +03:00
|
|
|
|
|
|
|
message UpdateRequest {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
2020-01-18 18:16:23 +03:00
|
|
|
message UpdateResponse {}
|
2020-01-16 19:10:15 +03:00
|
|
|
|
|
|
|
message DeleteRequest {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
2020-01-18 18:16:23 +03:00
|
|
|
message DeleteResponse {}
|
2020-01-16 19:10:15 +03:00
|
|
|
|
2020-07-02 16:07:58 +03:00
|
|
|
message ListRequest {
|
|
|
|
string namespace = 1;
|
|
|
|
}
|
2020-01-16 19:10:15 +03:00
|
|
|
|
|
|
|
message ListResponse {
|
2020-01-18 18:16:23 +03:00
|
|
|
repeated Change values = 1;
|
2020-01-16 19:10:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message ReadRequest {
|
2020-03-12 01:31:24 +03:00
|
|
|
string namespace = 1;
|
2020-01-16 19:10:15 +03:00
|
|
|
string path = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReadResponse {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message WatchRequest {
|
2020-03-12 01:31:24 +03:00
|
|
|
string namespace = 1;
|
2020-01-20 13:31:18 +03:00
|
|
|
string path = 2;
|
2020-01-16 19:10:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message WatchResponse {
|
2020-03-12 01:31:24 +03:00
|
|
|
string namespace = 1;
|
2020-01-16 19:10:15 +03:00
|
|
|
ChangeSet changeSet = 2;
|
2020-01-23 14:37:54 +03:00
|
|
|
}
|