cleanup

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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

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
}

Jump to

Keyboard shortcuts

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