handler

package
v0.0.0-...-873df37 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

EventHandler handels incoming events and notifies when an event is alerting

func NewEventHandler

func NewEventHandler(notifier notifier.Notifier) *EventHandler

NewEventHandler creates new event handler

func (*EventHandler) Handle

func (h *EventHandler) Handle(obj interface{}) error

Handle checks event health and notifies if unhealthy

type Handler

type Handler interface {
	Handle(obj interface{}) error
}

Handler handles controller events

Jump to

Keyboard shortcuts

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