Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsumer ¶
func NewConsumer(observer Observer) monitorConsumer.MonitorConsumer
NewConsumer returns an initialized pointer to consumer.
func NewMonitorFilter ¶
func NewMonitorFilter(logger logrus.FieldLogger, monitorEventFilters []string) (*monitorFilter, error)
NewMonitorFilter creates a new monitor filter. If monitorEventFilters is empty, no events are allowed.
Types ¶
type Observer ¶
type Observer interface { GetEventsChannel() chan *observerTypes.MonitorEvent GetLogger() logrus.FieldLogger }
Observer is the receiver of MonitorEvents
Click to show internal directories.
Click to hide internal directories.