diff --git a/Processor.proto b/Processor.proto new file mode 100644 index 0000000..c9947ab --- /dev/null +++ b/Processor.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +import "google/protobuf/any.proto"; + +option java_multiple_files = false; //不要拆分成多个文件 +option java_package = "com.yuandian.dataflow.proto"; +option go_package = "../grpc-gen;grpcgen"; + +package dataflow; + +message ProcessorResponse { + int32 code = 1; // 返回的状态码 + string message = 2; // 消息 +} + +message PacketsProcessorRequest { + int32 type = 1; // 请求类型. 默认 为 1. 暂无意义 + string version = 2; // 请求版本. 区分版本. 非必要时不使用 + repeated google.protobuf.Any packets = 3; // 请求的可变参数. 暂不使用 +} + +service ProcessorServer { + rpc AllPackets (PacketsProcessorRequest) returns (ProcessorResponse); +}