types

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AggregatePrefix = "aggregates/"

Variables

This section is empty.

Functions

func AggregateType

func AggregateType() schema.Type

func BufferType

func BufferType() schema.Type

func PieceLinkType

func PieceLinkType() schema.Type

Types

type Aggregate

type Aggregate struct {
	Root   piece.PieceLink
	Pieces []AggregatePiece
}

func (Aggregate) MarshalLogObject

func (a Aggregate) MarshalLogObject(enc zapcore.ObjectEncoder) error

MarshalLogObject makes Aggregate implement the zapcore.ObjectMarshaler interface

type AggregatePiece

type AggregatePiece struct {
	Link           piece.PieceLink
	InclusionProof merkletree.ProofData
}

type Buffer

type Buffer struct {
	TotalSize           uint64
	ReverseSortedPieces []piece.PieceLink
}

Buffer tracks in progress work building an aggregation

type Store

func NewStore

func NewStore(params StoreParams) Store

type StoreParams

type StoreParams struct {
	fx.In
	Datastore datastore.Datastore `name:"aggregator_datastore"`
}

Jump to

Keyboard shortcuts

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