syntax = "proto3"; package volume_server_pb; ////////////////////////////////////////////////// service VolumeServer { //Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas. rpc BatchDelete (BatchDeleteRequest) returns (BatchDeleteResponse) { } rpc VacuumVolumeCheck (VacuumVolumeCheckRequest) returns (VacuumVolumeCheckResponse) { } rpc VacuumVolumeCompact (VacuumVolumeCompactRequest) returns (VacuumVolumeCompactResponse) { } rpc VacuumVolumeCommit (VacuumVolumeCommitRequest) returns (VacuumVolumeCommitResponse) { } rpc VacuumVolumeCleanup (VacuumVolumeCleanupRequest) returns (VacuumVolumeCleanupResponse) { } rpc DeleteCollection (DeleteCollectionRequest) returns (DeleteCollectionResponse) { } rpc AssignVolume (AssignVolumeRequest) returns (AssignVolumeResponse) { } rpc VolumeSyncStatus (VolumeSyncStatusRequest) returns (VolumeSyncStatusResponse) { } rpc VolumeSyncIndex (VolumeSyncIndexRequest) returns (VolumeSyncIndexResponse) { } rpc VolumeSyncData (VolumeSyncDataRequest) returns (VolumeSyncDataResponse) { } rpc VolumeMount (VolumeMountRequest) returns (VolumeMountResponse) { } rpc VolumeUnmount (VolumeUnmountRequest) returns (VolumeUnmountResponse) { } } ////////////////////////////////////////////////// message BatchDeleteRequest { repeated string file_ids = 1; } message BatchDeleteResponse { repeated DeleteResult results = 1; } message DeleteResult { string file_id = 1; int32 status = 2; string error = 3; uint32 size = 4; } message Empty { } message VacuumVolumeCheckRequest { uint32 volumd_id = 1; } message VacuumVolumeCheckResponse { double garbage_ratio = 1; } message VacuumVolumeCompactRequest { uint32 volumd_id = 1; int64 preallocate = 2; } message VacuumVolumeCompactResponse { } message VacuumVolumeCommitRequest { uint32 volumd_id = 1; } message VacuumVolumeCommitResponse { } message VacuumVolumeCleanupRequest { uint32 volumd_id = 1; } message VacuumVolumeCleanupResponse { } message DeleteCollectionRequest { string collection = 1; } message DeleteCollectionResponse { } message AssignVolumeRequest { uint32 volumd_id = 1; string collection = 2; int64 preallocate = 3; string replication = 4; string ttl = 5; } message AssignVolumeResponse { } message VolumeSyncStatusRequest { uint32 volumd_id = 1; } message VolumeSyncStatusResponse { uint32 volumd_id = 1; string replication = 4; string ttl = 5; uint64 tail_offset = 6; uint32 compact_revision = 7; uint64 idx_file_size = 8; } message VolumeSyncIndexRequest { uint32 volumd_id = 1; } message VolumeSyncIndexResponse { bytes index_file_content = 1; } message VolumeSyncDataRequest { uint32 volumd_id = 1; uint32 revision = 2; uint32 offset = 3; uint32 size = 4; string needle_id = 5; } message VolumeSyncDataResponse { bytes file_content = 1; } message VolumeMountRequest { uint32 volumd_id = 1; } message VolumeMountResponse { } message VolumeUnmountRequest { uint32 volumd_id = 1; } message VolumeUnmountResponse { }