Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Support resolved URIs (#95)
Browse files Browse the repository at this point in the history
In order to support resolved UAuthority, we need to pass both name and
IP and/or ID, otherwise we only have partial and isResolved() for remote
URIs will never be true. The change is backwards compatible.

 #94
  • Loading branch information
Steven Hartley committed Jan 18, 2024
1 parent 105883b commit 642ed3f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions uprotocol/uri.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,13 @@ message UUri {
// An Authority represents the deployment location of a specific Software Entity.
// Authority can be represented in either a name (i.e example.com), ip address (205.236.147.1)
// or an ID (i.e. VIN, SHA 128, or any other identifier that is less than 255 bytes.
// *NOTE:* When Authority is empty (neither name, ip, or id is set) the authority
// *NOTE:* When Authority is empty (neither name, ip, or id are set) the authority
// is local.
message UAuthority {
// Remote authority information, if not present, authority is local
oneof remote {
string name = 1; // domain & device name as a string
bytes ip = 2; // IPv4 or IPv6 Address in byte format
bytes id = 3; // Unique ID for the device, could be a VIN, SHA 128, or any other identifier
// *NOTE:* MAX length is 255 bytes
}
optional string name = 1; // Domain & device name as a string
optional bytes ip = 2; // IPv4 or IPv6 Address in byte format
optional bytes id = 3; // Unique ID for the device, could be a VIN, SHA 128, or any other identifier
// *NOTE:* MAX length is 255 bytes
}


Expand Down

0 comments on commit 642ed3f

Please sign in to comment.