consumer

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitorConsumer

type MonitorConsumer interface {
	// NotifyAgentEvent informs the consumer about a new monitor event
	// sent from cilium-agent. The concrete type of the message parameter
	// depends on the value of typ:
	//  - MessageTypeAccessLog:		accesslog.LogRecord
	//  - MessageTypeAgent:			api.AgentNotify
	NotifyAgentEvent(typ int, message interface{})

	// NotifyPerfEvent informs the consumer about an datapath event obtained
	// via perf events ring buffer.
	// Data contains the raw binary encoded perf payload. The underlying type
	// depends on the value of typ:
	// 	- MessageTypeDrop:			monitor.DropNotify
	// 	- MessageTypeDebug:			monitor.DebugMsg
	// 	- MessageTypeCapture:		monitor.DebugCapture
	// 	- MessageTypeTrace:			monitor.TraceNotify
	// 	- MessageTypePolicyVerdict:	monitor.PolicyVerdictNotify
	NotifyPerfEvent(data []byte, cpu int)

	// NotifyPerfEventLost informs the consumer that a number of events have
	// been lost due to the perf event ring buffer not being read.
	NotifyPerfEventLost(numLostEvents uint64, cpu int)
}

MonitorConsumer is a consumer of decoded monitor events

Jump to

Keyboard shortcuts

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