Documentation ¶
Index ¶
- type IpfsBstore
- func (i *IpfsBstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (i *IpfsBstore) DeleteBlock(cid cid.Cid) error
- func (i *IpfsBstore) Get(cid cid.Cid) (blocks.Block, error)
- func (i *IpfsBstore) GetSize(cid cid.Cid) (int, error)
- func (i *IpfsBstore) Has(cid cid.Cid) (bool, error)
- func (i *IpfsBstore) HashOnRead(enabled bool)
- func (i *IpfsBstore) Put(block blocks.Block) error
- func (i *IpfsBstore) PutMany(blocks []blocks.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpfsBstore ¶
type IpfsBstore struct {
// contains filtered or unexported fields
}
func NewIpfsBstore ¶
func NewIpfsBstore(ctx context.Context) (*IpfsBstore, error)
func NewRemoteIpfsBstore ¶ added in v0.3.1
func NewRemoteIpfsBstore(ctx context.Context, maddr multiaddr.Multiaddr) (*IpfsBstore, error)
func (*IpfsBstore) AllKeysChan ¶
func (i *IpfsBstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*IpfsBstore) DeleteBlock ¶
func (i *IpfsBstore) DeleteBlock(cid cid.Cid) error
func (*IpfsBstore) GetSize ¶
func (i *IpfsBstore) GetSize(cid cid.Cid) (int, error)
func (*IpfsBstore) Has ¶
func (i *IpfsBstore) Has(cid cid.Cid) (bool, error)
func (*IpfsBstore) HashOnRead ¶
func (i *IpfsBstore) HashOnRead(enabled bool)
Click to show internal directories.
Click to hide internal directories.