Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrTypeNoSubscriber = "NoSubscriber" ErrTypeBufferFull = "BufferFull" MetricNameEventBusErr = "event_bus_err" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEventImpl ¶
type ConsumeFunc ¶
type ConsumeFunc func(interface{}) error
type EventBus ¶
type EventBus interface { Publish(topic string, event interface{}) error Subscribe(topic string, subscriber string, bufferSize int, handler ConsumeFunc) error EnableStatistic() SetEmitter(emitter metrics.MetricEmitter) }
EventBus TODO: support event type check, unsubscribe, stop, statistics
func GetDefaultEventBus ¶
func GetDefaultEventBus() EventBus
func NewEventBus ¶
type RawCGroupEvent ¶
type SyscallEvent ¶
type SyscallEvent struct { BaseEventImpl Cost time.Duration Syscall string PodUID string ContainerID string Logs []SyscallLog }
Click to show internal directories.
Click to hide internal directories.