collector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstanceManagerMap

func NewInstanceManagerMap() *instanceManagerMap

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Collector, error)

New initializes a new collector instance with state management and error handling

func (*Collector) List

func (c *Collector) List() []string

func (*Collector) ListStatus

func (c *Collector) ListStatus() []*manager.Status

func (*Collector) RegisterInput

func (c *Collector) RegisterInput(name string, input core.InputHandler) error

func (*Collector) RegisterOutput

func (c *Collector) RegisterOutput(name string, output core.OutputHandler) error

func (*Collector) RegisterProcessor

func (c *Collector) RegisterProcessor(name string, processor core.ProcessHandler) error

func (*Collector) Start

func (c *Collector) Start(id string, config core.Config) error

func (*Collector) Status

func (c *Collector) Status(id string) (*manager.Status, error)

func (*Collector) Stop

func (c *Collector) Stop(id string) error

func (*Collector) StopAll

func (c *Collector) StopAll()

type Config

type Config struct {
	SaveState    core.SaveStateFunc
	LoadState    core.LoadStateFunc
	ErrorHandler core.ErrorHandler
}

Jump to

Keyboard shortcuts

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