go_health_monitor

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2018 License: MIT Imports: 3 Imported by: 0

README

go-health-monitor

Health monitor go library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	Status  status.HealthStatus    `json:"status"`
	Details map[string]interface{} `json:"details"`
}

type HealthAggregator

type HealthAggregator interface {
	// contains filtered or unexported methods
}

type HealthIndicator

type HealthIndicator interface {
	Name() string
	Health() *Health
	StartHealthCheck()
}

type HealthMonitorService

type HealthMonitorService interface {
	HealthStatus() status.HealthStatus
	StatusCode() int
	HealthReport(showDetails bool) map[string]interface{}
	RegisterHealthIndicator(indicator HealthIndicator)
}

func NewHealthMonitorService

func NewHealthMonitorService() HealthMonitorService

type HealthMonitorServiceImpl

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

func (*HealthMonitorServiceImpl) HealthReport

func (c *HealthMonitorServiceImpl) HealthReport(showDetails bool) map[string]interface{}

func (*HealthMonitorServiceImpl) HealthStatus

func (c *HealthMonitorServiceImpl) HealthStatus() status.HealthStatus

func (*HealthMonitorServiceImpl) RegisterHealthIndicator

func (c *HealthMonitorServiceImpl) RegisterHealthIndicator(indicator HealthIndicator)

func (*HealthMonitorServiceImpl) StatusCode

func (c *HealthMonitorServiceImpl) StatusCode() int

type OrderedHealthAggregator

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

Directories

Path Synopsis
indicators

Jump to

Keyboard shortcuts

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