forked from TarsCloud/K8STARS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tarsregistry.tars
executable file
·41 lines (38 loc) · 1.06 KB
/
tarsregistry.tars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module tars
{
struct AdapterConf{
0 require string servant;
1 require string endpoint;
2 optional string protocol;
3 optional int maxConns;
4 optional int threadNum;
5 optional int queueCap;
6 optional int queueTimeout;
};
struct onStartupReq{
0 require string nodeName;
1 require string application;
2 require string server;
3 optional string setID;
4 optional vector<AdapterConf> adapters;
5 optional bool disableFlow;
6 optional string State = "active";
7 optional string Version;
};
struct onPrestopReq{
0 require string nodeName;
};
struct keepAliveReq{
0 require string nodeName;
1 require string state; // inactive or active
2 optional string application;
3 optional string server;
4 optional string setID;
};
interface tarsregistry
{
void onStartup(onStartupReq req);
void onPrestop(onPrestopReq req);
void keepAlive(keepAliveReq req);
};
};