Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardSelector ¶
type ShardSelector struct {
// contains filtered or unexported fields
}
ShardSelector is used by the dagstore's index-backed blockstore to select the best shard from which to retrieve a particular cid. It chooses the first shard that is unsealed and free (zero cost). It caches the results per-shard.
func NewShardSelector ¶
func NewShardSelector(ctx context.Context, ps piecestore.PieceStore, sa retrievalmarket.SectorAccessor, rp retrievalmarket.RetrievalProvider) (*ShardSelector, error)
func (*ShardSelector) ShardSelectorF ¶
ShardSelectorF chooses the first shard that is unsealed and free (zero cost)
Click to show internal directories.
Click to hide internal directories.