测试grpc-java
This commit is contained in:
26
src/main/proto/scheduler.proto
Normal file
26
src/main/proto/scheduler.proto
Normal file
@@ -0,0 +1,26 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package com.yuandian.dataflow.rpc;
|
||||
// option java_package = "com.yuandian.dataflow.rpc";
|
||||
|
||||
// option java_outer_classname = "com.yuandian.dataflow.rpc";
|
||||
option java_multiple_files = false;//以非外部类模式生成
|
||||
|
||||
service DataFlow {
|
||||
rpc Update (State) returns (Response);
|
||||
}
|
||||
|
||||
message State {
|
||||
map<int32, QueueState> QueueMap = 1;
|
||||
|
||||
}
|
||||
|
||||
message QueueState {
|
||||
int32 Size = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 Code = 1;
|
||||
string Message = 2;
|
||||
bytes Data = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user