Skip to content

Commit 2a0077c

Browse files
ImeevMAlocker
authored andcommitted
proto: introduce aeon_internal.proto
This patch adds `aeon_internal.proto` which will be used to implement the internal RPC. Currently this module only adds one RPC which is GetConfig(). This RPC returns the sideservice configuration. Needed for tarantool/aeon#313
1 parent 4df5e80 commit 2a0077c

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

aeon_internal.proto

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
syntax = "proto3";
2+
3+
import "aeon_error.proto";
4+
import "aeon_value.proto";
5+
6+
package aeon;
7+
8+
// Internal API to Aeon - a distributed database based on Tarantool.
9+
service InternalService {
10+
// Get the gRPC server sideservice configuration.
11+
rpc GetConfig(GetConfigRequest) returns (GetConfigResponse) {}
12+
}
13+
14+
// Get the gRPC server sideservice configuration.
15+
16+
// Instance configuration.
17+
message Config {
18+
// Tarantool instance information.
19+
message Instance {
20+
// Instance name.
21+
string name = 1;
22+
// Instance replicaset.
23+
string replicaset = 2;
24+
// Instance group.
25+
string group = 3;
26+
// Instance URI.
27+
Value uri = 4;
28+
// Instance roles.
29+
repeated string roles = 5;
30+
}
31+
// Name of the associated Tarantool instance.
32+
string name = 1;
33+
// The configuration of "aeon.grpc" role of the associated Tarantool instance.
34+
Value params = 2;
35+
// Information about all instances from Tarantool configuration.
36+
repeated Instance instances = 3;
37+
}
38+
39+
message GetConfigRequest {}
40+
41+
message GetConfigResponse {
42+
// Error information. Set only on failure.
43+
Error error = 1;
44+
// The gRPC server sideservice configuration.
45+
Config config = 2;
46+
}

0 commit comments

Comments
 (0)