Documentation ¶
Index ¶
- func LdWrite(w io.Writer, d ...[]byte) (int64, error)
- type CarShard
- type CarStore
- func (cs *CarStore) ImportSlice(ctx context.Context, uid uint, carslice []byte) (cid.Cid, *DeltaSession, error)
- func (cs *CarStore) NewDeltaSession(ctx context.Context, user uint, prev *cid.Cid) (*DeltaSession, error)
- func (cs *CarStore) ReadOnlySession(user uint) (*DeltaSession, error)
- func (cs *CarStore) ReadUserCar(ctx context.Context, user uint, until cid.Cid, incremental bool, w io.Writer) error
- type DeltaSession
- func (ds *DeltaSession) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (ds *DeltaSession) CloseWithRoot(ctx context.Context, root cid.Cid) ([]byte, error)
- func (ds *DeltaSession) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (ds *DeltaSession) Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
- func (ds *DeltaSession) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (ds *DeltaSession) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (ds *DeltaSession) HashOnRead(hor bool)
- func (ds *DeltaSession) Put(ctx context.Context, b blocks.Block) error
- func (ds *DeltaSession) PutMany(ctx context.Context, bs []blocks.Block) error
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CarStore ¶
type CarStore struct {
// contains filtered or unexported fields
}
func (*CarStore) ImportSlice ¶
func (*CarStore) NewDeltaSession ¶
func (*CarStore) ReadOnlySession ¶
func (cs *CarStore) ReadOnlySession(user uint) (*DeltaSession, error)
type DeltaSession ¶
type DeltaSession struct {
// contains filtered or unexported fields
}
func (*DeltaSession) AllKeysChan ¶
func (ds *DeltaSession) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*DeltaSession) CloseWithRoot ¶
func (ds *DeltaSession) CloseWithRoot(ctx context.Context, root cid.Cid) ([]byte, error)
CloseWithRoot writes all new blocks in a car file to the writer with the given cid as the 'root'
func (*DeltaSession) DeleteBlock ¶
func (ds *DeltaSession) DeleteBlock(ctx context.Context, c cid.Cid) error
func (*DeltaSession) GetSize ¶
func (ds *DeltaSession) GetSize(ctx context.Context, c cid.Cid) (int, error)
func (*DeltaSession) Has ¶
func (ds *DeltaSession) Has(ctx context.Context, c cid.Cid) (bool, error)
func (*DeltaSession) HashOnRead ¶
func (ds *DeltaSession) HashOnRead(hor bool)
Click to show internal directories.
Click to hide internal directories.