Documentation ¶
Index ¶
Constants ¶
View Source
const MaxDelegationHashPrefixBitLen = 32
View Source
const MinDelegationHashPrefixBitLen = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashBin ¶
type HashBin struct {
// contains filtered or unexported fields
}
HashBin represents a hex prefix range. First should be less than Last.
func (*HashBin) HashPrefixes ¶
HashPrefixes returns a slice of all hash prefixes in the bin.
type HashBins ¶
type HashBins struct {
// contains filtered or unexported fields
}
HashBins represents an ordered list of hash bin target roles, which together partition the space of target path hashes equal-sized buckets based on path has prefix.
func NewHashBins ¶
NewHashBins creates a HashBins partitioning with 2^bitLen buckets.
Click to show internal directories.
Click to hide internal directories.