Skip to content

Commit 0aa55e8

Browse files
feat: implement chunked user synchronization with gRPC and REST APIs
1 parent 1f3a90e commit 0aa55e8

11 files changed

Lines changed: 473 additions & 38 deletions

File tree

common/service.pb.go

Lines changed: 106 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/service.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ message Users {
125125
repeated User users = 1;
126126
}
127127

128+
message UsersChunk {
129+
repeated User users = 1;
130+
uint64 index = 2;
131+
bool last = 3;
132+
}
133+
128134
// Service for node management and connection
129135
service NodeService {
130136
rpc Start (Backend) returns (BaseInfoResponse) {}
@@ -143,4 +149,5 @@ service NodeService {
143149

144150
rpc SyncUser (stream User) returns (Empty) {}
145151
rpc SyncUsers (Users) returns (Empty) {}
152+
rpc SyncUsersChunked (stream UsersChunk) returns (Empty) {}
146153
}

common/service_grpc.pb.go

Lines changed: 32 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)