change server address from string to a type
This commit is contained in:
@@ -62,6 +62,7 @@ message Heartbeat {
|
||||
bool has_no_ec_shards = 19;
|
||||
|
||||
map<string, uint32> max_volume_counts = 4;
|
||||
uint32 grpc_port = 20;
|
||||
|
||||
}
|
||||
|
||||
@@ -127,7 +128,7 @@ message SuperBlockExtra {
|
||||
|
||||
message KeepConnectedRequest {
|
||||
string name = 1;
|
||||
uint32 grpc_port = 2;
|
||||
string client_address = 3;
|
||||
}
|
||||
|
||||
message VolumeLocation {
|
||||
@@ -137,6 +138,7 @@ message VolumeLocation {
|
||||
repeated uint32 deleted_vids = 4;
|
||||
string leader = 5; // optional when leader is not itself
|
||||
string data_center = 6; // optional when DataCenter is in use
|
||||
uint32 grpc_port = 7;
|
||||
}
|
||||
|
||||
message LookupVolumeRequest {
|
||||
@@ -156,6 +158,7 @@ message LookupVolumeResponse {
|
||||
message Location {
|
||||
string url = 1;
|
||||
string public_url = 2;
|
||||
uint32 grpc_port = 3;
|
||||
}
|
||||
|
||||
message AssignRequest {
|
||||
@@ -172,16 +175,11 @@ message AssignRequest {
|
||||
}
|
||||
message AssignResponse {
|
||||
string fid = 1;
|
||||
string url = 2;
|
||||
string public_url = 3;
|
||||
uint64 count = 4;
|
||||
string error = 5;
|
||||
string auth = 6;
|
||||
message Replica {
|
||||
string url = 1;
|
||||
string public_url = 2;
|
||||
}
|
||||
repeated Replica replicas = 7;
|
||||
repeated Location replicas = 7;
|
||||
Location location = 8;
|
||||
}
|
||||
|
||||
message StatisticsRequest {
|
||||
@@ -232,6 +230,7 @@ message DiskInfo {
|
||||
message DataNodeInfo {
|
||||
string id = 1;
|
||||
map<string, DiskInfo> diskInfos = 2;
|
||||
uint32 grpc_port = 3;
|
||||
}
|
||||
message RackInfo {
|
||||
string id = 1;
|
||||
|
||||
Reference in New Issue
Block a user