feeder

package
v0.2.366 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcfsFeeder

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

ProcfsFeeder implements ProcessEventFeeder by reading process information from /proc filesystem

func NewProcfsFeeder

func NewProcfsFeeder(interval time.Duration) *ProcfsFeeder

NewProcfsFeeder creates a new procfs feeder

func (*ProcfsFeeder) ProcessSpecificPID

func (pf *ProcfsFeeder) ProcessSpecificPID(pid uint32) error

ProcessSpecificPID processes a specific PID and feeds it as an event

func (*ProcfsFeeder) Start

func (pf *ProcfsFeeder) Start(ctx context.Context) error

Start begins the procfs feeder loop

func (*ProcfsFeeder) Stop

func (pf *ProcfsFeeder) Stop() error

Stop stops the procfs feeder

func (*ProcfsFeeder) Subscribe

func (pf *ProcfsFeeder) Subscribe(ch chan<- conversion.ProcessEvent)

Subscribe adds a channel to receive process events

Jump to

Keyboard shortcuts

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