mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
36 lines
617 B
Protocol Buffer
36 lines
617 B
Protocol Buffer
syntax = "proto3";
|
|
package rpc;
|
|
option go_package = ".;rpc";
|
|
|
|
message NodeInfo{
|
|
int32 NodeId = 1;
|
|
string NodeName = 2;
|
|
string ListenAddr = 3;
|
|
uint32 MaxRpcParamLen = 4;
|
|
bool Private = 5;
|
|
bool Retire = 6;
|
|
repeated string PublicServiceList = 7;
|
|
}
|
|
|
|
//Client->Master
|
|
message ServiceDiscoverReq{
|
|
NodeInfo nodeInfo = 1;
|
|
}
|
|
|
|
//Master->Client
|
|
message SubscribeDiscoverNotify{
|
|
int32 MasterNodeId = 1;
|
|
bool IsFull = 2;
|
|
int32 DelNodeId = 3;
|
|
repeated NodeInfo nodeInfo = 4;
|
|
}
|
|
|
|
|
|
//Client->Master
|
|
message NodeRetireReq{
|
|
NodeInfo nodeInfo = 1;
|
|
}
|
|
|
|
//Master->Client
|
|
message Empty{
|
|
} |