Skip to content

Commit

Permalink
Add gateway_info_v2, gateway_info_stream_req_v2, gateway_metadata_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotych committed Nov 22, 2024
1 parent 99908bc commit 090fe5f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/service/mobile_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ message gateway_metadata {
// The res12 h3 index asserted address of the gateway as a string
// where an unasserted gateway returns an empty string
string location = 2;
}

message gateway_metadata_v2 {
// The res12 h3 index asserted address of the gateway as a string
// where an unasserted gateway returns an empty string
string location = 2;
oneof deployment_info {
wifi_deployment_info wifi_deployment_info = 3;
cbrs_deployment_info cbrs_deployment_info = 4;
Expand All @@ -59,6 +65,15 @@ message gateway_info {
gateway_metadata metadata = 2;
// the asserted device type of the gateway
device_type device_type = 3;
}

message gateway_info_v2 {
// The public key binary address and on-chain identity of the gateway
bytes address = 1;
// The gateway metadata as recorded on the blockchain
gateway_metadata_v2 metadata = 2;
// the asserted device type of the gateway
device_type device_type = 3;
// The unix epoch timestamp (in seconds)
// when the data was read from chain and written to the db
uint64 refreshed_at = 4;
Expand Down Expand Up @@ -103,6 +118,17 @@ message gateway_info_stream_req_v1 {
// Device types that will be returned in the response
// Returns all devices if empty
repeated device_type device_types = 4;
}

message gateway_info_stream_req_v2 {
// max number of gateway info records in each message of the response stream
uint32 batch_size = 1;
// pubkey binary of the signing keypair
bytes signer = 2;
bytes signature = 3;
// Device types that will be returned in the response
// Returns all devices if empty
repeated device_type device_types = 4;
// The Unix epoch timestamp (in seconds).
// Filters the response based on the `refreshed_at` field in `gateway_info`.
// Returns only gateways where `refreshed_at` >= `min_refreshed_at`.
Expand Down

0 comments on commit 090fe5f

Please sign in to comment.