Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectationKey ¶
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.
Click to show internal directories.
Click to hide internal directories.