ipfsbstore

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpfsBstore

type IpfsBstore struct {
	// contains filtered or unexported fields
}

func NewIpfsBstore

func NewIpfsBstore(ctx context.Context) (*IpfsBstore, error)

func NewRemoteIpfsBstore added in v0.3.1

func NewRemoteIpfsBstore(ctx context.Context, maddr multiaddr.Multiaddr) (*IpfsBstore, error)

func (*IpfsBstore) AllKeysChan

func (i *IpfsBstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)

func (*IpfsBstore) DeleteBlock

func (i *IpfsBstore) DeleteBlock(cid cid.Cid) error

func (*IpfsBstore) Get

func (i *IpfsBstore) Get(cid cid.Cid) (blocks.Block, error)

func (*IpfsBstore) GetSize

func (i *IpfsBstore) GetSize(cid cid.Cid) (int, error)

func (*IpfsBstore) Has

func (i *IpfsBstore) Has(cid cid.Cid) (bool, error)

func (*IpfsBstore) HashOnRead

func (i *IpfsBstore) HashOnRead(enabled bool)

func (*IpfsBstore) Put

func (i *IpfsBstore) Put(block blocks.Block) error

func (*IpfsBstore) PutMany

func (i *IpfsBstore) PutMany(blocks []blocks.Block) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL