responsehandlers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRegisteredResponseHandlers

func DefaultRegisteredResponseHandlers() map[string]ResponseHandlerInterface

func RegisterResponseHandlerInterface

func RegisterResponseHandlerInterface(registeredResponseHandlerInterfaces *map[string]ResponseHandlerInterface, responseInterfaceName string, responseHandlerInterface ResponseHandlerInterface)

Types

type ConsoleHandler

type ConsoleHandler struct{}

func (ConsoleHandler) Handle

func (handler ConsoleHandler) Handle(configuration *models.Config, channel *chan response.Response)

type ConsoleHandlerWithMemory

type ConsoleHandlerWithMemory struct {
	ServiceProtocol map[string]response.ResponseType
}

func (ConsoleHandlerWithMemory) Handle

func (handler ConsoleHandlerWithMemory) Handle(configuration *models.Config, channel *chan response.Response)

type ResponseHandlerInterface

type ResponseHandlerInterface interface {

	// Handle - manage the responses.
	// configuration - is the same configuration model loaded from configFile.
	// channel - is the channel where responses arrive from check processes.
	Handle(*models.Config, *chan response.Response)
}

Jump to

Keyboard shortcuts

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