Documentation
¶
Index ¶
- type RecordingBlockstore
- func (bs *RecordingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (bs *RecordingBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (bs *RecordingBlockstore) Get(ctx context.Context, c cid.Cid) (blockformat.Block, error)
- func (bs *RecordingBlockstore) GetReadLog() []blockformat.Block
- func (bs *RecordingBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (bs *RecordingBlockstore) GetWriteLog() map[cid.Cid]blockformat.Block
- func (bs *RecordingBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (bs *RecordingBlockstore) HashOnRead(enabled bool)
- func (bs *RecordingBlockstore) Put(ctx context.Context, block blockformat.Block) error
- func (bs *RecordingBlockstore) PutMany(ctx context.Context, blocks []blockformat.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordingBlockstore ¶
type RecordingBlockstore struct {
// contains filtered or unexported fields
}
func New ¶
func New(base blockstore.Blockstore) *RecordingBlockstore
func (*RecordingBlockstore) AllKeysChan ¶
func (*RecordingBlockstore) DeleteBlock ¶
func (*RecordingBlockstore) Get ¶
func (bs *RecordingBlockstore) Get(ctx context.Context, c cid.Cid) (blockformat.Block, error)
func (*RecordingBlockstore) GetReadLog ¶
func (bs *RecordingBlockstore) GetReadLog() []blockformat.Block
func (*RecordingBlockstore) GetWriteLog ¶
func (bs *RecordingBlockstore) GetWriteLog() map[cid.Cid]blockformat.Block
func (*RecordingBlockstore) HashOnRead ¶
func (bs *RecordingBlockstore) HashOnRead(enabled bool)
func (*RecordingBlockstore) Put ¶
func (bs *RecordingBlockstore) Put(ctx context.Context, block blockformat.Block) error
func (*RecordingBlockstore) PutMany ¶
func (bs *RecordingBlockstore) PutMany(ctx context.Context, blocks []blockformat.Block) error
Click to show internal directories.
Click to hide internal directories.