collector

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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()
}

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) 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

Jump to

Keyboard shortcuts

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