deletion

package
v0.0.0-...-d29f491 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

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

func New

func New(db pool.Pool) (*Deleter, error)

func (*Deleter) DeleteOneBatch

func (d *Deleter) DeleteOneBatch(shortcutBatchSize int)

DeleteOneBatch deletes a batch of regressions from the regressions table and a batch of shortcuts from the shortcuts table.

func (*Deleter) RunPeriodicDeletion

func (d *Deleter) RunPeriodicDeletion(iterationPeriod time.Duration, shortcutBatchSize int)

RunPeriodicDeletion runs a goroutine that deletes shortcuts and regressions with the provided batch size (based on the number of shortcuts) with a frequency specified by iterationPeriod.

Jump to

Keyboard shortcuts

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