worker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFillThreshold = 0.7
	DefaultCheckInterval = 30 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interval  time.Duration
	Partition PartitionConfig
}

type PartitionConfig

type PartitionConfig struct {
	FillThreshold float64
}

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(log *zap.Logger, db *db.Handler) *Worker

func (*Worker) Start

func (w *Worker) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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