Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucketWorker ¶
func NewBucketWorker[E Bucketable](log *logrus.Entry, worker WorkerFunc, mu *sync.RWMutex) *monitor[E]
Types ¶
type BucketWorker ¶
type BucketWorker[E Bucketable] interface { Stop() Size() int SetBuckets([]int) Doc(string) (E, bool) DeleteDoc(E) UpsertDoc(E) }
type Bucketable ¶
type WorkerFunc ¶
type WorkerFunc func(<-chan struct{}, string)
Click to show internal directories.
Click to hide internal directories.