Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetentionWorker ¶
type RetentionWorker struct {
Repo *pgrepo.Repo
Every time.Duration
ArchivedTTL time.Duration
ReadTTL time.Duration
Batch int
}
RetentionWorker prunes aged notifications (F8-4, orkome): webhooks had a delivery sweeper from day one, notifications had none — the table grows unboundedly. Default retention: archived rows live 30 days, read rows 90, unread rows are never touched (they are still the user's pending signal).
func (*RetentionWorker) Name ¶
func (w *RetentionWorker) Name() string
Click to show internal directories.
Click to hide internal directories.