data_manager

package
v0.0.0-...-24f2d34 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpectationKey

type ExpectationKey struct {
	Groupingid string
	Digest     string
}

ExpectationKey provides a struct representing the key to an Expiration table row.

type ExpiryDataManager

type ExpiryDataManager interface {
	// GetExpiringExpectations returns expectations about to expire.
	GetExpiringExpectations(ctx context.Context) ([]ExpectationKey, error)

	// UpdateExpectationsExpiry updates the expiry for the provided expectations to the expirationTime.
	UpdateExpectationsExpiry(ctx context.Context, expectations []ExpectationKey, expirationTime time.Time) error
}

ExpiryDataManager provides an interface to manage data related to expirations.

func NewExpiryDataManager

func NewExpiryDataManager(db *pgxpool.Pool, batchSize int) ExpiryDataManager

NewExpiryDataManager returns a new instance of the ExpiryDataManager interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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