Documentation ¶
Index ¶
Constants ¶
View Source
const MaxCachedReaders = 128
Variables ¶
View Source
var NoDealErr = errors.New("no deals found")
Functions ¶
This section is empty.
Types ¶
type CachedPieceReader ¶
type CachedPieceReader struct {
// contains filtered or unexported fields
}
func NewCachedPieceReader ¶
func NewCachedPieceReader(db *harmonydb.DB, pp *pieceprovider.PieceProvider) *CachedPieceReader
func (*CachedPieceReader) GetSharedPieceReader ¶
func (cpr *CachedPieceReader) GetSharedPieceReader(ctx context.Context, pieceCid cid.Cid) (storiface.Reader, abi.PaddedPieceSize, error)
type PrefetchReader ¶
type PrefetchReader struct {
// contains filtered or unexported fields
}
func (*PrefetchReader) Close ¶
func (pr *PrefetchReader) Close() error
Click to show internal directories.
Click to hide internal directories.