File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,24 @@ service InternalService {
1414// Get configurations of all instances.
1515
1616// General structure of returned configuration
17- message ConfigData {
17+ message Config {
1818 // Structure of configuration of single instance.
19- message InstanceConfig {
19+ message Instance {
20+ // Name of the instance.
21+ string name = 1 ;
22+ // Replicaset of the instance.
23+ string replicaset = 2 ;
24+ // Group of the instance.
25+ string group = 3 ;
26+ // URI of the instance.
27+ Value uri = 4 ;
2028 // Tarantool instance configuration.
21- MapValue config
22- // Instance URI.
23- Value uri
24- // Instance replicaset.
25- string replicaset
26- // Instance group.
27- string group
29+ Value config = 5 ;
2830 }
2931 // The name of the instance that provided this configuration.
30- string name
32+ string name = 1 ;
3133 // Configurations of all instances.
32- map<string, InstanceConfig> instances
34+ repeated Instance instances = 2 ;
3335}
3436
3537message GetConfigRequest {}
@@ -38,5 +40,5 @@ message GetConfigResponse {
3840 // Error information. Set only on failure.
3941 Error error = 1 ;
4042 // Configurations of instances.
41- ConfigData config = 2 ;
43+ Config config = 2 ;
4244}
You can’t perform that action at this time.
0 commit comments