rpc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
402 B

3 years ago
  1. syntax = "proto3";
  2. package mastermsg;
  3. // 算术运算请求结构
  4. message EventRequest {
  5. string site_id = 1;
  6. string domainname = 2;
  7. string type = 3;
  8. string memo = 4;
  9. string data = 5;
  10. }
  11. // 算术运算响应结构
  12. message EventResponse {
  13. string event_id = 1; //ID
  14. }
  15. // rpc方法
  16. service MsgService {
  17. rpc sendEvent (EventRequest) returns (EventResponse); // 发送事件消息
  18. }