Documentation ¶
Index ¶
- type BufferedBS
- func (bs *BufferedBS) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (bs *BufferedBS) DeleteBlock(c cid.Cid) error
- func (bs *BufferedBS) Get(c cid.Cid) (block.Block, error)
- func (bs *BufferedBS) GetSize(c cid.Cid) (int, error)
- func (bs *BufferedBS) Has(c cid.Cid) (bool, error)
- func (bs *BufferedBS) HashOnRead(hor bool)
- func (bs *BufferedBS) Put(blk block.Block) error
- func (bs *BufferedBS) PutMany(blks []block.Block) error
- func (bs *BufferedBS) Read() bstore.Blockstore
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) 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) Read ¶
func (bs *BufferedBS) Read() bstore.Blockstore
Click to show internal directories.
Click to hide internal directories.