types

package
v0.0.0-...-0d681e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, MIT Imports: 3 Imported by: 0

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"`
}

type SrcData

type SrcData struct {
	Path   string
	Offset uint64
	Size   uint64
}

source info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL