package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

GetDelayMetricRecords gets the records of TTL delay metrics.
NewJobManager creates a new ttl job manager.
NewManagerJobAdapter creates a managerJobAdapter.
NewTTLTimerSyncer creates a new TTLTimersSyncer.

# Constants

ReasonError indicates whether the task is terminated because of error.
ReasonTaskFinished indicates the task is finished.
ReasonWorkerStop indicates whether the task is terminated because the scan worker stops.

# Variables

AttachStatsCollector attaches the stats collector for the session.
DetachStatsCollector removes the stats collector for the session this function is registered in BootstrapSession in /session/session.go.

# Structs

JobManager schedules and manages the ttl jobs on this instance.
SubmitTTLManagerJobRequest is the request to submit a TTL job to manager.
TTLJobTrace contains some TTL job information to trace.
TTLSummary is the summary for TTL job.
TTLTimerData is the data stored in each timer for TTL.
TTLTimersSyncer is used to sync timers for ttl.

# Interfaces

TTLJobAdapter is used to submit TTL job and trace job status.

# Type aliases

TaskTerminateReason indicates the reason why the task is terminated.