Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrikker committed Apr 17, 2019
1 parent 8beef52 commit 1829076
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 105 deletions.
78 changes: 78 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ build = "build.rs"
[dependencies]
bytes = "0.4"
linked-hash-map = "0.5"
log = "0.4"
prost = "0.5"
stderrlog = "0.4"
tokio = "0.1"

[build-dependencies]
Expand Down
25 changes: 18 additions & 7 deletions src/arbiter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,29 @@ syntax = "proto3";

package arbiter;

message IncomingMessage {
oneof message {
StartTransaction start_transaction = 1;
ResourcesAccessed resources_accessed = 2;
}
}

message StartTransaction {
uint64 txn_id = 1;
uint64 tid = 1;
}

message ResourceRead {
uint64 txn_id = 1;
string resource_id = 2;
message ResourcesAccessed {
uint64 tid = 1;
repeated string read_rids = 2;
repeated string written_rids = 3;
}

message IncomingMessage {
message OutgoingMessage {
oneof message {
StartTransaction start_transaction = 1;
ResourceRead resource_read = 2;
InvalidRequest invalid_request = 1;
}
}

message InvalidRequest {
string description = 1;
}
Loading

0 comments on commit 1829076

Please sign in to comment.