Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkMapping ¶
type ChunkMapping struct { SrcPath string `json:"srcpath"` // the path of chunk's source data SrcOffset uint64 `json:"srcoffset"` // the offset of chunk data in source data Size uint64 `json:"size"` // chunk data size DstOffset uint64 `json:"dstoffset"` // the offset of chunk in car ChunkSize uint64 `json:"chunksize"` // node size BlockSize uint64 `json:"blocksize"` // node blocksize NodeType pb.Data_DataType `json:"nodetype"` // node data type Cid cid.Cid `json:"cid"` // node cid Links []*ipld.Link `json:links` // chunks of node }
chunk meta mapping
func (*ChunkMapping) ChunkRanageInSource ¶
func (cm *ChunkMapping) ChunkRanageInSource() (string, uint64, uint64)
func (*ChunkMapping) ChunkRangeInCar ¶
func (cm *ChunkMapping) ChunkRangeInCar() (uint64, uint64)
type Mapping ¶
type Mapping struct { DataRoot cid.Cid `json:"dagroot"` Mappings []*ChunkMapping `json:"mappings"` }
Click to show internal directories.
Click to hide internal directories.