mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
43 lines
1.1 KiB
Protocol Buffer
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;
|
|
}
|