pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLimitReached = stderrors.New("limit reached")

ErrLimitReached is returned when the cleanup limit is reached during find operation

Functions

This section is empty.

Types

type NotificationCleaner

type NotificationCleaner interface {
	Clean(ctx context.Context, tx libkv.Tx, maxAge libtime.Duration, limit int) error
}

func NewNotificationCleaner

func NewNotificationCleaner(
	currentDateTime libtime.CurrentDateTime,
	notificationIndexer index.NotificationIndexer,
	notificationStoreTx core.NotificationStoreTx,
	logSamplerFactory log.SamplerFactory,
) NotificationCleaner

type NotificationLoader

type NotificationLoader interface {
	GetAll(
		ctx context.Context,
		tx libkv.Tx,
		baseIdentifiers base.Identifiers,
	) ([]core.Notification, error)
}

func NewNotificationLoader

func NewNotificationLoader(
	notificationGetterTx core.NotificationGetterTx,
	logSamplerFactory log.SamplerFactory,
) NotificationLoader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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