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 {
14
14
// Get configurations of all instances.
15
15
16
16
// General structure of returned configuration
17
- message ConfigData {
17
+ message Config {
18
18
// 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 ;
20
28
// 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 ;
28
30
}
29
31
// The name of the instance that provided this configuration.
30
- string name
32
+ string name = 1 ;
31
33
// Configurations of all instances.
32
- map<string, InstanceConfig> instances
34
+ repeated Instance instances = 2 ;
33
35
}
34
36
35
37
message GetConfigRequest {}
@@ -38,5 +40,5 @@ message GetConfigResponse {
38
40
// Error information. Set only on failure.
39
41
Error error = 1 ;
40
42
// Configurations of instances.
41
- ConfigData config = 2 ;
43
+ Config config = 2 ;
42
44
}
You can’t perform that action at this time.
0 commit comments