flowsrv.proto 396 B

123456789101112131415161718192021222324
  1. syntax = "proto3";
  2. option go_package = "./pb";
  3. package pb;
  4. import "google/protobuf/struct.proto";
  5. message CommandReq {
  6. int64 type = 1;
  7. string access_token = 2;
  8. }
  9. message CommandResp {
  10. int64 code = 1;
  11. string msg = 2;
  12. google.protobuf.Struct data = 3;
  13. }
  14. service Flowsrv {
  15. rpc connect(CommandReq) returns (stream CommandResp);
  16. rpc disconnect(CommandReq) returns (CommandResp);
  17. }