Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockReader ¶
type BlockReader interface { Get(link ipld.Link) (ipld.Block, bool, error) Iterator() iter.Seq2[ipld.Block, error] }
func NewBlockReader ¶
func NewBlockReader(options ...Option) (BlockReader, error)
type BlockStore ¶
type BlockStore interface { BlockReader BlockWriter }
func NewBlockStore ¶
func NewBlockStore(options ...Option) (BlockStore, error)
type BlockWriter ¶
type Option ¶
type Option func(cfg *bsConfig) error
Option is an option configuring a block reader/writer.
func WithBlocks ¶
WithBlocks configures the blocks the blockstore should contain.
Click to show internal directories.
Click to hide internal directories.