master add grpc API for fileid assigning

This commit is contained in:
Chris Lu
2018-11-20 11:35:45 -08:00
parent b318167cd3
commit 5065d4ab2d
5 changed files with 352 additions and 122 deletions

View File

@@ -11,6 +11,8 @@ service Seaweed {
}
rpc LookupVolume (LookupVolumeRequest) returns (LookupVolumeResponse) {
}
rpc Assign (AssignRequest) returns (AssignResponse) {
}
}
//////////////////////////////////////////////////
@@ -89,3 +91,20 @@ message Location {
string url = 1;
string public_url = 2;
}
message AssignRequest {
uint64 count = 1;
string replication = 2;
string collection = 3;
string ttl = 4;
string data_center = 5;
string rack = 6;
string data_node = 7;
}
message AssignResponse {
string fid = 1;
string url = 2;
string public_url = 3;
uint64 count = 4;
string error = 5;
}