modulepackage
0.0.0-20210721162146-07badf54b1f3
Repository: https://github.com/willscott/carbon.git
Documentation: pkg.go.dev
# README
💎 Carbon
Note: This repository has been integrated into the core car library. Use of this module is deprecated, and you should instead prefer car/v2/blockstore.
Carbon provides a blockstore interface with saved blocks stored to a car-compatible log. A Carbs index for the resulting file is tracked and can be saved as needed.
Note: Carbon does not support deletion.
License
Carbon is dual-licensed under Apache 2.0 and MIT terms:
Apache License, Version 2.0, (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
# Functions
New creates a new Carbon blockstore.
NewWithRoots creates a new Carbon blockstore with a provided set of root cids as the car roots.
# Constants
IndexInsertion carbs IndexCodec identifier.
# Interfaces
Deprecated: Prefer go-car/v2/blockstore.ReadWrite Carbon is a carbs-index-compatible blockstore supporting appending additional blocks.