This repository has been archived by the owner on May 29, 2023. It is now read-only.
generated from well-known-components/template-server
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aa5dcf
commit 0662a13
Showing
15 changed files
with
4,561 additions
and
1,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
|
||
package protocol; | ||
|
||
enum MessageType { | ||
UNKNOWN_MESSAGE_TYPE = 0; | ||
HEARTBEAT = 1; | ||
SUBSCRIPTION = 2; | ||
TOPIC = 3; | ||
} | ||
|
||
message MessageHeader { | ||
MessageType type = 1; | ||
} | ||
|
||
message HeartBeatMessage { | ||
MessageType type = 1; | ||
double time = 2; | ||
bytes data = 3; | ||
} | ||
|
||
// NOTE: topics is a space separated string in the format specified by Format | ||
message SubscriptionMessage { | ||
MessageType type = 1; | ||
bytes topics = 2; | ||
} | ||
|
||
message TopicMessage { | ||
MessageType type = 1; | ||
uint64 from_alias = 2; | ||
string topic = 3; | ||
bytes body = 4; | ||
} |
Oops, something went wrong.