站点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.

26 lines
784 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. syntax = "proto3";
  2. package siterpc;
  3. // 配置信息请求结构
  4. message Request {
  5. string data = 1;
  6. string time = 2;
  7. string sign = 3;
  8. }
  9. // 配置信息响应结构
  10. message Response {
  11. string data = 1;
  12. string time = 2;
  13. string sign = 3;
  14. }
  15. // rpc方法
  16. service SiteService {
  17. rpc getConfig (Request) returns (Response); // 查询配置信息
  18. rpc getBalanceType (Request) returns (Response); // 查询账户类型信息
  19. rpc getAllSite(Request) returns (Response);//缓存的所有站点
  20. rpc getSiteInfoByHost(Request) returns (Response);//根据host获取站点关键信息
  21. rpc getAllConfig (Request) returns (Response); // 查询所有配置信息
  22. rpc getGroupConfig (Request) returns (Response); // 查询分组下所有配置信息
  23. }