worker

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskMigratorWALWorker

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

TaskMigratorWALWorker uses TaskMigrator for migrations

func (*TaskMigratorWALWorker) Process

func (walWorker *TaskMigratorWALWorker) Process(walTasksChan <-chan *model.WALTask)

Process processes the channel of tasks and performs the migrations themselves

func (*TaskMigratorWALWorker) SetMultiPartThresholdInBytes

func (walWorker *TaskMigratorWALWorker) SetMultiPartThresholdInBytes(numOfBytes int)

type WALWorker

type WALWorker interface {
	Process(walTasksChan <-chan *model.WALTask)
	SetMultiPartThresholdInBytes(numOfBytes int)
}

WALWorker performs the migrations

func NewTaskMigratorWALWorker

func NewTaskMigratorWALWorker(maxConcurrentMigrations int) WALWorker

NewTaskMigratorWALWorker creates an instance of TaskMigratorWALWorker

Jump to

Keyboard shortcuts

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