eventstream

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package eventstream manages the processing of eBPF ring buffer events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

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

Stream reads events from a ringbuffer and dispatches them to a handler.

func New

func New(reader *ringbuf.Reader, handler eventprocessor.EventHandler) *Stream

New creates a new Stream with the given ringbuffer reader and event handler.

func (*Stream) Start

func (s *Stream) Start(ctx context.Context) error

Start begins reading events from the ringbuffer in a goroutine It returns immediately and processes events in the background until the context is canceled or Stop is called.

func (*Stream) Stop

func (s *Stream) Stop() error

Stop signals the event processing goroutine to stop.

Jump to

Keyboard shortcuts

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