Documentation ¶
Index ¶
- type LinkSystemBlockstore
- func (lsbs *LinkSystemBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (lsbs *LinkSystemBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (lsbs *LinkSystemBlockstore) Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
- func (lsbs *LinkSystemBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (lsbs *LinkSystemBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (lsbs *LinkSystemBlockstore) HashOnRead(enabled bool)
- func (lsbs *LinkSystemBlockstore) Put(ctx context.Context, blk blocks.Block) error
- func (lsbs *LinkSystemBlockstore) PutMany(ctx context.Context, blks []blocks.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkSystemBlockstore ¶
type LinkSystemBlockstore struct {
// contains filtered or unexported fields
}
func NewLinkSystemBlockstore ¶
func NewLinkSystemBlockstore(lsys linking.LinkSystem) *LinkSystemBlockstore
func (*LinkSystemBlockstore) AllKeysChan ¶
func (lsbs *LinkSystemBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*LinkSystemBlockstore) DeleteBlock ¶
func (lsbs *LinkSystemBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
func (*LinkSystemBlockstore) GetSize ¶
func (lsbs *LinkSystemBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
func (*LinkSystemBlockstore) Has ¶
func (lsbs *LinkSystemBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
func (*LinkSystemBlockstore) HashOnRead ¶
func (lsbs *LinkSystemBlockstore) HashOnRead(enabled bool)
Click to show internal directories.
Click to hide internal directories.