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

initial rough draft of protobuf events #2

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions events/proto/analyzed.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax = "proto3";

message Analyzed {
Header header = 1;
MessageInfo message = 2;
// honestly not sure.. do we want a type of analysis?
// certainly a set of traits or tags resulting from the analysis?
}
23 changes: 23 additions & 0 deletions events/proto/base.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
syntax = "proto3";

message System {
string name = 1;
string state = 2;
string instanceID = 3;
string repository = 4;
string githash = 5;
}

// Do we need a better name for the piece of data we're delivering?
message MessageInfo {
string id = 1;
string uri = 2;
string hash = 3;
}

message Header {
string id = 1;
string parent_id = 2;
Timestamp timestamp = 3;
System system = 4;
}
6 changes: 6 additions & 0 deletions events/proto/created.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
syntax = "proto3";

message Created {
Header header = 1;
MessageInfo message = 2;
}
8 changes: 8 additions & 0 deletions events/proto/delivered.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

syntax = "proto3";

message Delivered {
Header header = 1;
MessageInfo incoming = 2;
MessageInfo delivered = 3;
}
8 changes: 8 additions & 0 deletions events/proto/transformed.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

syntax = "proto3";

message Transformed {
Header header = 1;
MessageInfo incoming_message = 2;
repeated Created transformed_messages = 3;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels heavy handed...and could be a really big array... but could also be nice to have rolled up in one place?

}