本站源代码
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.

81 lines
1.4KB

  1. syntax = "proto2";
  2. option go_package = "modules";
  3. package appengine;
  4. message ModulesServiceError {
  5. enum ErrorCode {
  6. OK = 0;
  7. INVALID_MODULE = 1;
  8. INVALID_VERSION = 2;
  9. INVALID_INSTANCES = 3;
  10. TRANSIENT_ERROR = 4;
  11. UNEXPECTED_STATE = 5;
  12. }
  13. }
  14. message GetModulesRequest {
  15. }
  16. message GetModulesResponse {
  17. repeated string module = 1;
  18. }
  19. message GetVersionsRequest {
  20. optional string module = 1;
  21. }
  22. message GetVersionsResponse {
  23. repeated string version = 1;
  24. }
  25. message GetDefaultVersionRequest {
  26. optional string module = 1;
  27. }
  28. message GetDefaultVersionResponse {
  29. required string version = 1;
  30. }
  31. message GetNumInstancesRequest {
  32. optional string module = 1;
  33. optional string version = 2;
  34. }
  35. message GetNumInstancesResponse {
  36. required int64 instances = 1;
  37. }
  38. message SetNumInstancesRequest {
  39. optional string module = 1;
  40. optional string version = 2;
  41. required int64 instances = 3;
  42. }
  43. message SetNumInstancesResponse {}
  44. message StartModuleRequest {
  45. required string module = 1;
  46. required string version = 2;
  47. }
  48. message StartModuleResponse {}
  49. message StopModuleRequest {
  50. optional string module = 1;
  51. optional string version = 2;
  52. }
  53. message StopModuleResponse {}
  54. message GetHostnameRequest {
  55. optional string module = 1;
  56. optional string version = 2;
  57. optional string instance = 3;
  58. }
  59. message GetHostnameResponse {
  60. required string hostname = 1;
  61. }
上海开阖软件有限公司 沪ICP备12045867号-1