sectoraccessor

package
v1.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL