add protobuf
This commit is contained in:
parent
d3decb00b5
commit
c6378d9dd2
46
proto/message.proto
Normal file
46
proto/message.proto
Normal file
@ -0,0 +1,46 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message AuthRequest {
|
||||
bytes uuid = 1;
|
||||
bytes username = 2;
|
||||
bytes salt = 3;
|
||||
bytes token = 4;
|
||||
int32 timestamp = 5;
|
||||
}
|
||||
|
||||
message AuthReply {
|
||||
int32 code = 1;
|
||||
bytes payload = 2;
|
||||
}
|
||||
|
||||
message Pub {
|
||||
bytes topic = 1;
|
||||
int32 qos = 2;
|
||||
bytes content = 3;
|
||||
}
|
||||
|
||||
message Command {
|
||||
int32 command_type = 1;
|
||||
bytes command = 2;
|
||||
}
|
||||
|
||||
message JsonRpcRequest {
|
||||
bytes method = 1;
|
||||
bytes params = 2;
|
||||
}
|
||||
|
||||
message JsonRpcReply {
|
||||
bytes result = 1;
|
||||
bytes error = 2;
|
||||
}
|
||||
|
||||
message Data {
|
||||
bytes route_key = 1;
|
||||
bytes metric = 2;
|
||||
}
|
||||
|
||||
message TaskEventStream {
|
||||
int32 task_id = 1;
|
||||
bytes type = 2;
|
||||
bytes stream = 3;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user