All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.common-grpc.3.5.4.source-code.Connector.proto Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
syntax = "proto3";

option java_multiple_files = true;
option java_package = "net.wicp.tams.common.grpc.connector";
option java_outer_classname = "ConnectorProto";

package connector;

//service definition
service ConnectorService {
  rpc Call (In) returns (Out) {}
  //刷新connector的配置与bean
  rpc Refresh(Admin) returns(Result) {}
}

message Admin{
  string token =1;
}

message Result{
  string ret =1;
}

message ControlInfo {
  string msgId = 1;
  string senderSystem = 2;
  string senderApplication = 3;
  string toApplication = 4;//微服务就是 instanceId见Eureka的Application
  string senderChannel = 5;
  string version = 6;
  string requestCommand = 7;
  bool cache = 8;
  string url = 9;//调用地址,请带上contextPath
}

message In {
  ControlInfo controlInfo = 1;
  string input = 2;
}

message RespInfo {
  string  receiptSystem = 1;
  string  receiptApplication = 2;
  string  msgId = 3;
  string  msgIdResp = 4;
}

message Out {
   RespInfo respInfo= 1;
   int32 errorValue=2;
   string errorCode=3;
   string errorDesc=4;
   string errMsg=5;
   string http=6;
   string output = 7;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy