package
Version:
v0.0.0-...-a257059
Opens a new window with list of versions in this module.
Published: Dec 5, 2024
License: MIT, MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
resetStates sets all states to finished and disable TTL on restart
For all states covered by an input, TTL will be overwritten with the input value
type Registrar struct {
Channel chan []file.State
}
Registrar: 采集进度管理
New creates a new Registrar instance, updating the registry file on
`file.State` updates. New fails if the file can not be opened or created.
GetStates return the registrar states
Init: 采集器启动时调用,同时对原采集器采集进度迁移
Start start the registry.
Stop stops the registry. It waits until Run function finished.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.