sharding

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 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 iterable.Iterator[block.Block], options ...Option) (iterable.Iterator[io.Reader], error)

func NewSharderFromCAR

func NewSharderFromCAR(reader io.Reader) (iterable.Iterator[io.Reader], 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