controller

package
v0.0.0-...-59fe2b4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHealth

func CheckHealth(c echo.Context) error

CheckHealth func to return OK and http 200

func CompleteCheck

func CompleteCheck(c echo.Context) error

CompleteCheck func is used to check connections between this bot to SensuGo and Slack. Don't use it as a test probe in Kubernetes

func ReceiveEvents

func ReceiveEvents(c echo.Context) (err error)

ReceiveEvents func

Types

type CompleteHealth

type CompleteHealth struct {
	Status   string `json:"status"`
	SensuAPI string `json:"sensuapi"`
	SlackAPI string `json:"slackapi"`
}

CompleteHealth struct

type Health

type Health struct {
	Status string `json:"status"`
}

Health struct

Jump to

Keyboard shortcuts

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