prune

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_LIFETIME_OF_WELCOME_MESSAGES = 90

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func NewPruneExecutor

func NewPruneExecutor(
	ctx context.Context,
	log *zap.Logger,
	writerDB *sql.DB,
	config *server.PruneConfig,
) *Executor

func (*Executor) Run

func (e *Executor) Run() error

type Pruner

type Pruner interface {
	Count(ctx context.Context) (int64, error)
	PruneCycle(ctx context.Context) (int, error)
}

type WelcomePruner

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

func (*WelcomePruner) Count

func (w *WelcomePruner) Count(ctx context.Context) (int64, error)

func (*WelcomePruner) PruneCycle

func (w *WelcomePruner) PruneCycle(ctx context.Context) (int, error)

Jump to

Keyboard shortcuts

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