Skip to content

Commit

Permalink
Merge pull request #382 from helium/jg/mobile-config-batch
Browse files Browse the repository at this point in the history
query mobile hotspot info by pubkey batch
  • Loading branch information
jeffgrunewald authored Dec 14, 2023
2 parents de51ede + 5a11fa6 commit 5e38bab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/service/mobile_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ 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;
// max number of gateway info records in each message of the response stream
uint32 batch_size = 2;
// pubkey binary of the signing keypair
bytes signer = 3;
bytes signature = 4;
}

message gateway_info_res_v1 {
gateway_info info = 1;
// unix epoch timestamp in seconds
Expand Down Expand Up @@ -189,6 +199,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 5e38bab

Please sign in to comment.