mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-06 21:37:30 +08:00
1.支持动态服务发现功能
2.Service中支持对RPC结点连接或断开事件监听
This commit is contained in:
29
rpc/dynamicdiscover.proto
Normal file
29
rpc/dynamicdiscover.proto
Normal file
@@ -0,0 +1,29 @@
|
||||
syntax = "proto3";
|
||||
package rpc;
|
||||
option go_package = "./rpc";
|
||||
|
||||
message NodeInfo{
|
||||
int32 NodeId = 1;
|
||||
string NodeName = 2;
|
||||
string ListenAddr = 3;
|
||||
bool Private = 4;
|
||||
repeated string PublicServiceList = 5;
|
||||
}
|
||||
|
||||
//Client->Master
|
||||
message ServiceDiscoverReq{
|
||||
NodeInfo nodeInfo = 1;
|
||||
}
|
||||
|
||||
//Master->Client
|
||||
message SubscribeDiscoverNotify{
|
||||
bool IsFull = 1;
|
||||
int32 DelNodeId = 2;
|
||||
repeated NodeInfo nodeInfo = 3;
|
||||
}
|
||||
|
||||
|
||||
//Master->Client
|
||||
message ServiceDiscoverRes{
|
||||
repeated NodeInfo nodeInfo = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user