health

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 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 Health

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

Health represents the state info of service

func NewHealth

func NewHealth(host string, port int, path string, log *logger.Logger) *Health

NewHealth returns a Health

func (*Health) GetChan

func (h *Health) GetChan() chan<- ServiceState

GetChan returns a write-only channel that you can pass new state to it

type ServiceState

type ServiceState string

ServiceState represents the state of service

const (
	// ServiceStateOK represents the state of service that is OK
	ServiceStateOK ServiceState = "OK"
	// ServiceStateBusy represents the state of service that is Busy
	ServiceStateBusy ServiceState = "Busy"
	// ServiceStateIdling represents the state of service that is Idle
	ServiceStateIdling ServiceState = "Idle"

	// ServiceStateUnavailable represents the state of service that is Unavailable
	ServiceStateUnavailable ServiceState = "Unavailable"
)

Jump to

Keyboard shortcuts

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