-
Notifications
You must be signed in to change notification settings - Fork 1
/
log.proto
61 lines (47 loc) · 2.16 KB
/
log.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package cypress;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/vektra/tai64n/tai64n.proto";
option (gogoproto.marshaler_all) = true;
option (gogoproto.sizer_all) = true;
option (gogoproto.unmarshaler_all) = true;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
message Interval {
required uint64 seconds = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "codec:\"seconds\""];
required uint32 nanoseconds = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "codec:\"nanoseconds\""];
}
message Attribute {
required uint32 key = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "codec:\"key,omitempty\""];
optional string skey = 2 [(gogoproto.moretags) = "codec:\"skey,omitempty\""];
optional sint64 ival = 3 [(gogoproto.moretags) = "codec:\"ival,omitempty\""];
optional string sval = 4 [(gogoproto.moretags) = "codec:\"sval,omitempty\""];
optional bytes bval = 5 [(gogoproto.moretags) = "codec:\"bval,omitempty\""];
optional Interval tval = 6 [(gogoproto.moretags) = "codec:\"tval,omitempty\""];
optional bool boolval = 7 [(gogoproto.moretags) = "codec:\"boolval,omitempty\""];
optional double fval = 8 [(gogoproto.moretags) = "codec:\"fval,omitempty\""];
}
message Tag {
required string name = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "codec:\"name\""];
optional string value = 2 [(gogoproto.moretags) = "codec:\"value,omitempty\""];;
}
message Message {
optional int32 version = 6 [(gogoproto.nullable) = false, (gogoproto.moretags) = "codec:\"version\""];
required tai64n.TAI64n timestamp = 1 [(gogoproto.moretags) = "codec:\"timestamp\""];
required uint32 type = 2 [(gogoproto.moretags) = "codec:\"type\""];
repeated Attribute attributes = 3 [(gogoproto.moretags) = "codec:\"attributes\""];
optional string session_id = 4 [(gogoproto.moretags) = "codec:\"session_id\""];
repeated Tag Tags = 5 [(gogoproto.moretags) = "codec:\"tags\""];
}
message StreamHeader {
enum Compression {
NONE = 0;
SNAPPY = 1;
ZLIB = 2;
}
optional Compression compression = 1;
enum Mode {
RAW = 0;
RELIABLE = 1;
}
optional Mode mode = 2;
}