Documentation ¶
Index ¶
- Variables
- func DoGC(ctx context.Context, se session.Session)
- type JobManager
- func (w *JobManager) Error() error
- func (m *JobManager) GetCommandCli() client.CommandClient
- func (m *JobManager) GetNotificationCli() client.NotificationClient
- func (w *JobManager) Send() chan<- interface{}
- func (w *JobManager) Start()
- func (w *JobManager) Status() workerStatus
- func (w *JobManager) Stop()
- func (w *JobManager) WaitStopped(ctx context.Context, timeout time.Duration) error
- type TTLSummary
Constants ¶
This section is empty.
Variables ¶
View Source
var AttachStatsCollector = func(s sqlexec.SQLExecutor) sqlexec.SQLExecutor {
return s
}
AttachStatsCollector attaches the stats collector for the session. this function is registered in BootstrapSession in /session/session.go
View Source
var DetachStatsCollector = func(s sqlexec.SQLExecutor) sqlexec.SQLExecutor {
return s
}
DetachStatsCollector removes the stats collector for the session this function is registered in BootstrapSession in /session/session.go
Functions ¶
Types ¶
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
JobManager schedules and manages the ttl jobs on this instance
func NewJobManager ¶
func NewJobManager(id string, sessPool sessionPool, store kv.Storage, etcdCli *clientv3.Client) (manager *JobManager)
NewJobManager creates a new ttl job manager
func (*JobManager) GetCommandCli ¶
func (m *JobManager) GetCommandCli() client.CommandClient
GetCommandCli returns the command client
func (*JobManager) GetNotificationCli ¶
func (m *JobManager) GetNotificationCli() client.NotificationClient
GetNotificationCli returns the notification client
type TTLSummary ¶
type TTLSummary struct { TotalRows uint64 `json:"total_rows"` SuccessRows uint64 `json:"success_rows"` ErrorRows uint64 `json:"error_rows"` TotalScanTask int `json:"total_scan_task"` ScheduledScanTask int `json:"scheduled_scan_task"` FinishedScanTask int `json:"finished_scan_task"` ScanTaskErr string `json:"scan_task_err,omitempty"` SummaryText string `json:"-"` }
TTLSummary is the summary for TTL job
Click to show internal directories.
Click to hide internal directories.