@@ -4,71 +4,71 @@ option go_package = "proto";
44package grpc ;
55
66message PackagedData {
7- repeated Record records = 1 ;
8- repeated Payload payloads = 2 ; // backport
9- string agent_id = 3 ;
10- repeated string intranet_ipv4 = 4 ;
11- repeated string extranet_ipv4 = 5 ;
12- repeated string intranet_ipv6 = 6 ;
13- repeated string extranet_ipv6 = 7 ;
14- string hostname = 8 ;
15- string version = 9 ;
16- string product = 10 ;
17- }
18-
19- message EncodedRecord {
20- int32 data_type = 1 ;
21- int64 timestamp = 2 ;
22- bytes data = 3 ;
23- }
24-
25- message Record {
26- int32 data_type = 1 ;
27- int64 timestamp = 2 ;
28- Payload data = 3 ;
29- }
30-
31- message Payload { map <string , string > fields = 1 ; }
32-
33- message Command {
34- Task task = 2 ;
35- repeated Config configs = 3 ;
36- }
37-
38- message Task {
39- int32 data_type = 1 ;
40- string object_name = 2 ;
41- string data = 3 ;
42- string token = 4 ;
43- }
44-
45- message Config {
46- string name = 1 ;
47- string type = 2 ;
48- string version = 3 ;
49- string sha256 = 4 ;
50- string signature = 5 ;
51- repeated string download_urls = 6 ;
52- string detail = 7 ;
53- }
54-
55- service Transfer {
56- rpc Transfer (stream PackagedData ) returns (stream Command ) {}
57- }
58-
59- message FileUploadRequest {
60- string token = 1 ;
61- bytes data = 2 ;
62- }
63-
64- message FileUploadResponse {
65- enum StatusCode {
66- SUCCESS = 0 ;
67- FAILED = 1 ;
68- }
69- StatusCode status = 1 ;
7+ repeated Record records = 1 ;
8+ repeated Payload payloads = 2 ; // backport
9+ string agent_id = 3 ;
10+ repeated string intranet_ipv4 = 4 ;
11+ repeated string extranet_ipv4 = 5 ;
12+ repeated string intranet_ipv6 = 6 ;
13+ repeated string extranet_ipv6 = 7 ;
14+ string hostname = 8 ;
15+ string version = 9 ;
16+ string product = 10 ;
17+ }
18+
19+ message EncodedRecord {
20+ int32 data_type = 1 ;
21+ int64 timestamp = 2 ;
22+ bytes data = 3 ;
23+ }
24+
25+ message Record {
26+ int32 data_type = 1 ;
27+ int64 timestamp = 2 ;
28+ Payload data = 3 ;
29+ }
30+
31+ message Payload { map <string , string > fields = 1 ; }
32+
33+ message Command {
34+ Task task = 2 ;
35+ repeated Config configs = 3 ;
36+ }
37+
38+ message Task {
39+ int32 data_type = 1 ;
40+ string object_name = 2 ;
41+ string data = 3 ;
42+ string token = 4 ;
43+ }
44+
45+ message Config {
46+ string name = 1 ;
47+ string type = 2 ;
48+ string version = 3 ;
49+ string sha256 = 4 ;
50+ string signature = 5 ;
51+ repeated string download_urls = 6 ;
52+ string detail = 7 ;
53+ }
54+
55+ service Transfer {
56+ rpc Transfer (stream PackagedData ) returns (stream Command ) {}
57+ }
58+
59+ message FileUploadRequest {
60+ string token = 1 ;
61+ bytes data = 2 ;
62+ }
63+
64+ message FileUploadResponse {
65+ enum StatusCode {
66+ SUCCESS = 0 ;
67+ FAILED = 1 ;
7068 }
69+ StatusCode status = 1 ;
70+ }
7171
72- service FileExt {
73- rpc Upload (stream FileUploadRequest ) returns (FileUploadResponse );
74- }
72+ service FileExt {
73+ rpc Upload (stream FileUploadRequest ) returns (FileUploadResponse );
74+ }
0 commit comments