mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-14 21:06:34 +08:00
提供批量更新服务配置API(阶段性提交)
This commit is contained in:
20
pkg/rpc/protos/service_updating_server_list.proto
Normal file
20
pkg/rpc/protos/service_updating_server_list.proto
Normal file
@@ -0,0 +1,20 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 待更新服务列表服务
|
||||
service UpdatingServerListService {
|
||||
// 查找要更新的服务配置
|
||||
rpc findUpdatingServerLists(FindUpdatingServerListsRequest) returns (FindUpdatingServerListsResponse);
|
||||
}
|
||||
|
||||
// 查找要更新的服务配置
|
||||
message FindUpdatingServerListsRequest {
|
||||
int64 lastId = 1; // 上一次读取的列表ID
|
||||
}
|
||||
|
||||
message FindUpdatingServerListsResponse {
|
||||
bytes serversJSON = 1; // 服务配置列表
|
||||
int64 maxId = 2; // 最大的一个列表ID
|
||||
}
|
||||
Reference in New Issue
Block a user