bufbstore

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0, MIT Imports: 5 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 (*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