Categorygithub.com/ipfs/go-blockservice
modulepackage
0.5.2
Repository: https://github.com/ipfs/go-blockservice.git
Documentation: pkg.go.dev

# README

go-blockservice

go-blockservice provides a seamless interface to both local and remote storage backends.

Coverage Status Build Status

ā— This repo is no longer maintained.

šŸ‘‰ We highly recommend switching to the maintained version at https://github.com/ipfs/boxo/tree/main/blockservice. šŸŽļø Good news! There is tooling and documentation to expedite a switch in your repo.

āš ļø If you continue using this repo, please note that security fixes will not be provided (unless someone steps in to maintain it).

šŸ“š Learn more, including how to take the maintainership mantle or ask questions, here.

Table of Contents

TODO

The interfaces here really would like to be merged with the blockstore interfaces. The 'dagservice' constructor currently takes a blockservice, but it would be really nice if it could just take a blockstore, and have this package implement a blockstore.

License

MIT Ā© Juan Batiz-Benet

# Packages

No description provided by the author

# Functions

NewBlockService creates a BlockService with given datastore instance.
NewSession creates a new session that allows for controlled exchange of wantlists to decrease the bandwidth overhead.
NewWriteThrough creates a BlockService that guarantees writes will go through to the blockstore and are not skipped by cache checks.

# Structs

Session is a helper type to provide higher level access to bitswap sessions Deprecated: use github.com/ipfs/boxo/blockservice.Session.

# Interfaces

BlockGetter is the common interface shared between blockservice sessions and the blockservice.
BlockService is a hybrid block datastore.