cubefs/proto/distributed_cache.proto
slasher b150a10a36 feat(flashnode): add service of flashnode
. #22115361 #22200518 of #21957840

Signed-off-by: slasher <mcq.sejust@gmail.com>
2025-08-07 15:18:46 +08:00

43 lines
1.1 KiB
Protocol Buffer

// protoc --proto_path=./vendor/:./proto/ --gofast_out=./proto/ distributed_cache.proto
syntax = "proto3";
package proto;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
message DataSource {
option (gogoproto.goproto_stringer) = false;
uint64 FileOffset = 1;
uint64 PartitionID = 2;
uint64 ExtentID = 3;
uint64 ExtentOffset = 4;
uint64 Size = 5;
repeated string Hosts = 6;
}
message CacheRequest {
option (gogoproto.goproto_stringer) = false;
string Volume = 1;
uint64 Inode = 2;
uint64 FixedFileOffset = 3;
uint32 Version = 4;
repeated DataSource Sources = 5;
int64 TTL = 6;
}
message CacheReadRequest {
option (gogoproto.goproto_stringer) = false;
CacheRequest CacheRequest = 1;
uint64 Offset = 2;
uint64 Size = 3;
}
message CachePrepareRequest {
option (gogoproto.goproto_stringer) = false;
CacheRequest CacheRequest = 1;
repeated string FlashNodes = 2;
}