Documentation ¶
Overview ¶
Package ringbuffer holds ringbuffer related files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
type RingBuffer struct {
// contains filtered or unexported fields
}
RingBuffer implements the EventStream interface using an eBPF map of type BPF_MAP_TYPE_RINGBUF
func New ¶
func New(handler func(int, []byte)) *RingBuffer
New returns a new ring buffer based event stream.
func (*RingBuffer) Pause ¶
func (rb *RingBuffer) Pause() error
Pause the event stream. Do nothing when using ring buffer
func (*RingBuffer) Resume ¶
func (rb *RingBuffer) Resume() error
Resume the event stream. Do nothing when using ring buffer
func (*RingBuffer) SetMonitor ¶
func (rb *RingBuffer) SetMonitor(_ eventstream.LostEventCounter)
SetMonitor set the monitor
Click to show internal directories.
Click to hide internal directories.