Documentation
¶
Index ¶
- Variables
- type Blockstore
- func (b *Blockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (b *Blockstore) Close() error
- func (b *Blockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (b *Blockstore) Flush(ctx context.Context) error
- func (b *Blockstore) Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
- func (b *Blockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (b *Blockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (b *Blockstore) HashOnRead(bool)
- func (b *Blockstore) Put(ctx context.Context, block blocks.Block) error
- func (b *Blockstore) PutMany(ctx context.Context, blk []blocks.Block) error
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BlockstoreMaxQueuedBlocks = 64 BlockstoreMaxUnflushedBlocks = 1024 )
Functions ¶
This section is empty.
Types ¶
type Blockstore ¶
type Blockstore struct {
// contains filtered or unexported fields
}
func (*Blockstore) AllKeysChan ¶
func (b *Blockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*Blockstore) Close ¶
func (b *Blockstore) Close() error
func (*Blockstore) DeleteBlock ¶
func (b *Blockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
func (*Blockstore) GetSize ¶
func (b *Blockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
func (*Blockstore) HashOnRead ¶
func (b *Blockstore) HashOnRead(bool)
Click to show internal directories.
Click to hide internal directories.