-
Notifications
You must be signed in to change notification settings - Fork 0
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
8673831
commit 7b02fee
Showing
9 changed files
with
627 additions
and
278 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 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,6 @@ | ||
use std::io::Result; | ||
|
||
fn main() -> Result<()> { | ||
prost_build::compile_protos(&["src/items.proto"], &["src/"])?; | ||
Ok(()) | ||
} |
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,46 @@ | ||
syntax = "proto3"; | ||
|
||
package cccp.items; | ||
|
||
message Message { | ||
oneof message { | ||
Files files = 1; | ||
Confirmations confirmations = 2; | ||
StartIndex start_index = 3; | ||
Start start = 4; | ||
End end = 5; | ||
Done done = 6; | ||
} | ||
} | ||
|
||
message Files { | ||
repeated string directories = 1; | ||
map<uint32, FileDetail> files = 2; // map for file details | ||
} | ||
|
||
message FileDetail { | ||
string file_path = 1; | ||
uint64 file_size = 2; | ||
} | ||
|
||
message Confirmations { | ||
map<uint32, ConfirmationIndexes> indexes = 1; | ||
} | ||
|
||
message ConfirmationIndexes { | ||
repeated uint64 inner = 1; | ||
} | ||
|
||
message StartIndex { | ||
uint64 index = 1; | ||
} | ||
|
||
message Start { | ||
uint32 id = 1; | ||
} | ||
|
||
message End { | ||
uint32 id = 1; | ||
} | ||
|
||
message Done {} |
Oops, something went wrong.