Registry / networking / ipfs-go-blockservice

ipfs-go-blockservice

JSON →
library0.5.2gogounverified

Package blockservice implements a BlockService interface that provides a single GetBlock/AddBlock interface that seamlessly retrieves data either locally or from a remote peer through the exchange.

go get github.com/ipfs/go-blockservice
INSTALL
IMPORT
SIG · IPFS-GO-BLOCKSERVI
I
ipfs-go-blockservice
networkinggov0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

blockservice
github.com/ipfs/go-blockservice

Creates a new blockservice with a local blockstore.

package main import ( "context" "github.com/ipfs/go-blockservice" "github.com/ipfs/go-datastore" "github.com/ipfs/go-ipfs-blockstore" ) func main() { bs := blockstore.NewBlockstore(datastore.NewMapDatastore()) svc := blockservice.New(bs, nil) _ = svc }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ipfs-go-blockservice — go get ipfs-go-blockservice · libregistry