Documentation ¶
Index ¶
- type Dag
- type Mount
- func (f *Mount) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (f *Mount) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (f *Mount) Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
- func (f *Mount) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (f *Mount) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (f *Mount) HashOnRead(enabled bool)
- func (f *Mount) Put(ctx context.Context, b blocks.Block) error
- func (f *Mount) PutMany(ctx context.Context, bs []blocks.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dag ¶
type Dag struct { Dag *uih.DagBuilderParams // use MapDataStore // contains filtered or unexported fields }
Dag dag to fileStore TODO : fs 의 cid 와 dag 의 cid 가 다를 경우 동기화 처리 필요 dag 의 block 은 어느 기준으로 Garbage collect?? 블록 전체를 캐싱하고 있으면 안되는데...
type Mount ¶
type Mount struct {
// contains filtered or unexported fields
}
func NewMount ¶
func NewMount(fs *file.FileStore, fm *file.FileManager, bs blockstore.Blockstore) *Mount
func (*Mount) AllKeysChan ¶
AllKeysChan returns a channel from which to read the keys stored in the blockstore. If the given context is cancelled the channel will be closed.
func (*Mount) HashOnRead ¶
HashOnRead calls blockstore.HashOnRead.
Click to show internal directories.
Click to hide internal directories.