bufbstore

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedBS

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

func NewBufferedBstore

func NewBufferedBstore(base bstore.Blockstore) *BufferedBS

func NewTieredBstore added in v0.3.0

func NewTieredBstore(r bstore.Blockstore, w bstore.Blockstore) *BufferedBS

func (*BufferedBS) AllKeysChan

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

func (*BufferedBS) DeleteBlock

func (bs *BufferedBS) DeleteBlock(c cid.Cid) error

func (*BufferedBS) Get

func (bs *BufferedBS) Get(c cid.Cid) (block.Block, error)

func (*BufferedBS) GetSize

func (bs *BufferedBS) GetSize(c cid.Cid) (int, error)

func (*BufferedBS) Has

func (bs *BufferedBS) Has(c cid.Cid) (bool, error)

func (*BufferedBS) HashOnRead

func (bs *BufferedBS) HashOnRead(hor bool)

func (*BufferedBS) Put

func (bs *BufferedBS) Put(blk block.Block) error

func (*BufferedBS) PutMany

func (bs *BufferedBS) PutMany(blks []block.Block) error

func (*BufferedBS) Read

func (bs *BufferedBS) Read() bstore.Blockstore

Jump to

Keyboard shortcuts

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