Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proto for generic streaming. #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions p2p/proto/streaming.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";

message Stream {
// Receivers identify streams by (sender, stream_id). This means each node can allocate
// `stream_id`s independently and that many streams can be sent on a single network topic.
uint64 stream_id = 1;
// Identifies the sequence of each message in the stream starting from 0.
uint64 sequence_number = 2;
oneof content {
// Serialized content.
bytes data = 3;
// Fin must be set to true.
bool fin = 4;
}
}