Help us shape the future of Go! Take the 2026 Go Developer Survey

feeder

package
v0.3.310 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 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 ProcfsFeeder

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

ProcfsFeeder implements ProcessEventFeeder by reading process information from /proc filesystem.

func NewProcfsFeeder

func NewProcfsFeeder(fullScanInterval time.Duration, pidScanInterval time.Duration, processTreeManager processtree.ProcessTreeManager) *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.

func (*ProcfsFeeder) Unsubscribe added in v0.3.273

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

Unsubscribe removes a channel from the subscribers list.

Jump to

Keyboard shortcuts

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