Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface {
// CollectorName returns the unique name of the collector
CollectorName() string
// InitCollector initializes the collector with a controller
// The controller can be nil during early initialization
// The config parameter is the collector-specific configuration, which can be cast to the appropriate type
InitCollector(controller ds.Controller, config any, appRunContext ds.AppRunContext) error
Enable()
Disable()
// GetStatus returns the current status of the collector
GetStatus() ds.CollectorStatus
}
Collector defines the interface for collection functionality
type PeriodicExecutor ¶ added in v0.5.0
type PeriodicExecutor struct {
// contains filtered or unexported fields
}
func MakePeriodicExecutor ¶ added in v0.5.0
func MakePeriodicExecutor(name string, dur time.Duration, execFn func()) *PeriodicExecutor
func (*PeriodicExecutor) Disable ¶ added in v0.5.0
func (p *PeriodicExecutor) Disable()
func (*PeriodicExecutor) Enable ¶ added in v0.5.0
func (p *PeriodicExecutor) Enable()
func (*PeriodicExecutor) GetLastErr ¶ added in v0.5.16
func (p *PeriodicExecutor) GetLastErr() error
GetLastErr returns the last error with proper locking
func (*PeriodicExecutor) GetLastExecDuration ¶ added in v0.5.16
func (p *PeriodicExecutor) GetLastExecDuration() int64
GetLastExecDuration returns the duration of the last execution in milliseconds
func (*PeriodicExecutor) IsEnabled ¶ added in v0.5.0
func (p *PeriodicExecutor) IsEnabled() bool
Directories
¶
| Path | Synopsis |
|---|---|
|
Package loginitex provides external process-based log capture functionality
|
Package loginitex provides external process-based log capture functionality |
Click to show internal directories.
Click to hide internal directories.