Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSectorAccessor ¶
func NewSectorAccessor(maddr dtypes.MinerAddress, secb sectorblocks.SectorBuilder, pp sealer.PieceProvider, full v1api.FullNode) dagstore.SectorAccessor
Types ¶
type CachingSectorAccessor ¶ added in v1.6.1
type CachingSectorAccessor struct { dagstore.SectorAccessor // contains filtered or unexported fields }
CachingSectorAccessor caches calls to isUnsealed
func (*CachingSectorAccessor) IsUnsealed ¶ added in v1.6.1
func (c *CachingSectorAccessor) IsUnsealed(ctx context.Context, sectorID abi.SectorNumber, offset abi.UnpaddedPieceSize, length abi.UnpaddedPieceSize) (bool, error)
type SectorAccessorConstructor ¶ added in v1.6.1
type SectorAccessorConstructor func(maddr dtypes.MinerAddress, secb sectorblocks.SectorBuilder, pp sealer.PieceProvider, full v1api.FullNode) dagstore.SectorAccessor
func NewCachingSectorAccessor ¶ added in v1.6.1
func NewCachingSectorAccessor(maxCacheSize int, cacheExpire time.Duration) SectorAccessorConstructor
Click to show internal directories.
Click to hide internal directories.