Skip to content

Commit

Permalink
add batch mobile config gateway query api
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald committed Dec 14, 2023
1 parent de51ede commit e331df7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/service/mobile_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ message gateway_info_req_v1 {
bytes signature = 3;
}

message gateway_info_batch_req_v1 {
// List of public key addresses of gateways to look up
repeated bytes addresses = 1;
// pubkey binary of the signing keypair
bytes signer = 2;
bytes signature = 3;
}

message gateway_info_res_v1 {
gateway_info info = 1;
// unix epoch timestamp in seconds
Expand Down Expand Up @@ -189,6 +197,9 @@ message admin_key_res_v1 {
service gateway {
// Get info for the specified gateway
rpc info(gateway_info_req_v1) returns (gateway_info_res_v1);
// Get info for a batch of gateways specified by public key
rpc info_batch(gateway_info_batch_req_v1)
returns (stream gateway_info_stream_res_v1);
// Get a stream of gateway info
rpc info_stream(gateway_info_stream_req_v1)
returns (stream gateway_info_stream_res_v1);
Expand Down

0 comments on commit e331df7

Please sign in to comment.