inputs_manager

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputsManager

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

func NewInputsManager

func NewInputsManager(ctx context.Context, store store.Store[any], pipeline chan *pipeline.Msg) *InputsManager

func (*InputsManager) DeleteInput

func (mgr *InputsManager) DeleteInput(name string) error

func (*InputsManager) ProcessorInUse

func (mgr *InputsManager) ProcessorInUse(name string) bool

func (*InputsManager) Start

func (mgr *InputsManager) Start(wg *sync.WaitGroup) error

func (*InputsManager) Stop

func (mgr *InputsManager) Stop()

type ManagedInput

type ManagedInput struct {
	sync.RWMutex
	Name          string
	Impl          inputs.Input
	Cfg           map[string]any
	IntendedState atomic.Value // "enabled|disabled"
	State         atomic.Value // "running|stopped|failed|paused"
}

Jump to

Keyboard shortcuts

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