2020-01-17 00:10:15 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2020-01-23 11:37:54 +00: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-17 00:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message ChangeSet {
|
2020-03-14 00:44:55 +03:00
|
|
|
string data = 1;
|
2020-01-17 00:10:15 +08:00
|
|
|
string checksum = 2;
|
|
|
|
string format = 3;
|
|
|
|
string source = 4;
|
|
|
|
int64 timestamp = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Change {
|
2020-03-11 22:31:24 +00:00
|
|
|
string namespace = 1;
|
2020-01-17 00:10:15 +08:00
|
|
|
string path = 2;
|
|
|
|
ChangeSet changeSet = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateRequest {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
2020-01-18 23:16:23 +08:00
|
|
|
message CreateResponse {}
|
2020-01-17 00:10:15 +08:00
|
|
|
|
|
|
|
message UpdateRequest {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
2020-01-18 23:16:23 +08:00
|
|
|
message UpdateResponse {}
|
2020-01-17 00:10:15 +08:00
|
|
|
|
|
|
|
message DeleteRequest {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
2020-01-18 23:16:23 +08:00
|
|
|
message DeleteResponse {}
|
2020-01-17 00:10:15 +08:00
|
|
|
|
2020-07-02 14:07:58 +01:00
|
|
|
message ListRequest {
|
|
|
|
string namespace = 1;
|
|
|
|
}
|
2020-01-17 00:10:15 +08:00
|
|
|
|
|
|
|
message ListResponse {
|
2020-01-18 23:16:23 +08:00
|
|
|
repeated Change values = 1;
|
2020-01-17 00:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message ReadRequest {
|
2020-03-11 22:31:24 +00:00
|
|
|
string namespace = 1;
|
2020-01-17 00:10:15 +08:00
|
|
|
string path = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReadResponse {
|
|
|
|
Change change = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message WatchRequest {
|
2020-03-11 22:31:24 +00:00
|
|
|
string namespace = 1;
|
2020-01-20 18:31:18 +08:00
|
|
|
string path = 2;
|
2020-01-17 00:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message WatchResponse {
|
2020-03-11 22:31:24 +00:00
|
|
|
string namespace = 1;
|
2020-01-17 00:10:15 +08:00
|
|
|
ChangeSet changeSet = 2;
|
2020-01-23 11:37:54 +00:00
|
|
|
}
|