flowsrv.proto 446 B

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