Documentation
¶
Index ¶
Constants ¶
View Source
const DailyCronSchedule = "CRON_TZ=UTC 0 0 * * *"
DailyCronSchedule is the system-owned retention maintenance cadence.
Variables ¶
This section is empty.
Functions ¶
func PolicyFromSettings ¶
func PolicyFromSettings(raw []byte) (model.OrganizationRetentionPolicy, error)
func ValidatePolicy ¶
func ValidatePolicy(policy model.OrganizationRetentionPolicy) error
Types ¶
type MaintenanceExecution ¶
MaintenanceExecution identifies one private worker job attempt. SourceJobID exists only to correlate retries and is never part of tenant-safe models.
type Service ¶
type Service interface {
PruneExpiredCustomerData(context.Context, MaintenanceExecution) (Result, error)
ListMaintenanceRuns(context.Context, slug.Slug) ([]model.OrganizationRetentionRun, error)
}
func New ¶
func New( txm postgres.TransactionManager, repo retention.Repository, wishlistRepo wishlistRetentionRepository, clk clock.Clock, ) Service
Click to show internal directories.
Click to hide internal directories.