buckets

package
v0.0.0-...-a2a38d8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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 Bucketable interface {
	GetID() string
	GetBucket() int
	GetKey() string
}

type WorkerFunc

type WorkerFunc func(<-chan struct{}, string)

Jump to

Keyboard shortcuts

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