datamodeltype

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobIndexSchema

func BlobIndexSchema() schema.Type

BlobIndexSchema returns the schema type for a blob index of a single shard

func ShardedDagIndexSchema

func ShardedDagIndexSchema() schema.Type

ShardedDagIndexSchema returns the schema type for a sharded dag index

Types

type BlobIndexModel

type BlobIndexModel struct {
	Multihash []byte
	Slices    []BlobSliceModel
}

BlobIndexModel is the golang structure for encoding a shard of CIDS in a block

type BlobSliceModel

type BlobSliceModel struct {
	Multihash []byte
	Position  PositionModel
}

BlobSliceModel describes a multihash and its position in a blob

type PositionModel

type PositionModel struct {
	Offset uint64
	Length uint64
}

PositionModel is an offset and length for a since CID in a blob

type ShardedDagIndexModel

type ShardedDagIndexModel struct {
	DagO_1 *ShardedDagIndexModel_0_1
}

ShardedDagIndexModel is the golang structure for encoding sharded DAG index header blocks

type ShardedDagIndexModel_0_1

type ShardedDagIndexModel_0_1 struct {
	Content ipld.Link
	Shards  []ipld.Link
}

ShardedDagIndexModel_0_1 describes the 0.1 version of ShardedDagIndex

Jump to

Keyboard shortcuts

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