sharding

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ShardSize = 133_169_152

https://observablehq.com/@gozala/w3up-shard-size

Variables

This section is empty.

Functions

func NewSharder

func NewSharder(roots []ipld.Link, blocks iter.Seq2[ipld.Block, error], options ...Option) (iter.Seq2[io.Reader, error], error)

func NewSharderFromCAR

func NewSharderFromCAR(reader io.Reader) (iter.Seq2[io.Reader, error], error)

Types

type Option

type Option func(cfg *sharderConfig) error

Option is an option configuring a sharder.

func WithShardSize

func WithShardSize(size int) Option

WithShardSize configures the size of the shards - default 133,169,152 bytes.

Jump to

Keyboard shortcuts

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