12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- syntax = "proto3";
- option go_package = "dr_resource_pb/";
- package dr.resource;
- message EmptyRequest {}
- service Basic {
- rpc SoftwareInfo (EmptyRequest) returns (SoftwareInfoReply) {}
- }
- message SoftwareInfoReply {
- string module = 1;
- string desc = 2;
- string build = 3;
- string version = 4;
- }
- service Config {
- rpc ConfigOptionList (ConfigOptionListRequest) returns (ConfigOptionListReply) {}
- rpc ConfigList (ConfigListRequest) returns (ConfigListResponse) {}
- }
- message ConfigListRequest {
- oneof filter {
- string group = 1;
- string key = 2;
- }
- }
- message ConfigListResponse {
- string key = 1;
- string value = 2;
- string option_key = 3;
- string value_type = 4;
- string desc = 5;
- int32 order = 6;
- bool is_enabled = 7;
- string uri = 8;
- }
- message ConfigOptionListRequest {
- string flag = 1;
- bool is_enabled = 2;
- }
- message ConfigOption {
- string flag = 1;
- string text = 2;
- string value = 3;
- int32 order = 4;
- bool is_enabled = 5;
- }
- message ConfigOptionListReply {
- repeated ConfigOption configOption = 1;
- }
|