Documentation
¶
Overview ¶
Package cleanup implements periodic data deletion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MetricPrefix = observability.MetricRoot + "/cleanup"
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a controller for the cleanup service.
func New ¶
func New(ctx context.Context, config *config.CleanupConfig, db *database.Database, h *render.Renderer) (*Controller, error)
New creates a new cleanup controller.
func (*Controller) HandleCleanup ¶
func (c *Controller) HandleCleanup() http.Handler
type Metrics ¶ added in v0.11.0
type Metrics struct {
ClaimAttempts *stats.Int64Measure
ClaimErrors *stats.Int64Measure
PurgeVerificationCodesAttempts *stats.Int64Measure
PurgeVerificationCodesErrors *stats.Int64Measure
PurgeVerificationCodesPurged *stats.Int64Measure
PurgeVerificationTokensAttempts *stats.Int64Measure
PurgeVerificationTokensErrors *stats.Int64Measure
PurgeVerificationTokensPurged *stats.Int64Measure
PurgeMobileAppsAttempts *stats.Int64Measure
PurgeMobileAppsErrors *stats.Int64Measure
PurgeMobileAppsPurged *stats.Int64Measure
PurgeAuditEntriesAttempts *stats.Int64Measure
PurgeAuditEntriesErrors *stats.Int64Measure
PurgeAuditEntriesPurged *stats.Int64Measure
}
Click to show internal directories.
Click to hide internal directories.