//
pkg.gl
Category
github.com/bhojpur/knative-pkg
hash
package
0.0.3
Repository:
https://github.com/bhojpur/knative-pkg.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
10
Dependents
0
Files
216 SLOC
#
Functions
ChooseSubset
ChooseSubset consistently chooses n items from `from`, using `target` as a seed value.
GetAny
Returns a single element from the set.
NewBucketSet
NewBucketSet creates a new bucket set with the given universe of bucket names.
#
Structs
Bucket
Bucket implements reconciler.Bucket and wraps around BuketSet for bucketing functions.
BucketSet
BucketSet answers to what bucket does key X belong in a consistent manner (consistent as in consistent hashing).