Compare commits
3 commits
master
...
proto3_con
Author | SHA1 | Date | |
---|---|---|---|
|
3b6559fa49 | ||
|
0e4395c39e | ||
|
4223fd24b4 |
12 changed files with 79 additions and 0 deletions
7
proto/v2/channel.proto
Normal file
7
proto/v2/channel.proto
Normal file
|
@ -0,0 +1,7 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
message Channel {
|
||||
bytes public_key = 1;
|
||||
}
|
18
proto/v2/claim.proto
Normal file
18
proto/v2/claim.proto
Normal file
|
@ -0,0 +1,18 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
import "stream.proto";
|
||||
import "channel.proto";
|
||||
|
||||
message Claim {
|
||||
enum Type {
|
||||
UNKNOWN = 0;
|
||||
STREAM = 1;
|
||||
CHANNEL = 2;
|
||||
}
|
||||
|
||||
Type type = 1; // do we need this?
|
||||
Stream stream = 2;
|
||||
Channel channel = 3;
|
||||
}
|
16
proto/v2/fee.proto
Normal file
16
proto/v2/fee.proto
Normal file
|
@ -0,0 +1,16 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
message Fee {
|
||||
enum Currency {
|
||||
UNKNOWN = 0;
|
||||
LBC = 1;
|
||||
BTC = 2;
|
||||
USD = 3;
|
||||
}
|
||||
|
||||
Currency currency = 1;
|
||||
bytes address = 2;
|
||||
float amount = 3;
|
||||
}
|
8
proto/v2/file.proto
Normal file
8
proto/v2/file.proto
Normal file
|
@ -0,0 +1,8 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
message File {
|
||||
string name = 1;
|
||||
uint64 size = 2;
|
||||
}
|
30
proto/v2/stream.proto
Normal file
30
proto/v2/stream.proto
Normal file
|
@ -0,0 +1,30 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
import "fee.proto";
|
||||
import "file.proto";
|
||||
|
||||
message Stream {
|
||||
bytes hash = 1;
|
||||
string language = 2;
|
||||
string title = 3;
|
||||
string author = 4;
|
||||
string description = 5;
|
||||
string media_type = 6;
|
||||
string license = 7;
|
||||
File file = 8;
|
||||
|
||||
Fee fee = 16;
|
||||
string license_url = 17;
|
||||
string thumbnail = 18;
|
||||
string preview = 19;
|
||||
bool nsfw = 20;
|
||||
uint32 duration = 21;
|
||||
Timestamp release_time = 22;
|
||||
}
|
||||
|
||||
message Timestamp {
|
||||
sint64 epoch_seconds = 1;
|
||||
sint32 bc_year = 2;
|
||||
}
|
Loading…
Reference in a new issue