probe

package
v3.7.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpHealth

func GetHttpHealth(address string) map[string]string

func GetShellHealth

func GetShellHealth(address string) map[string]string

func GetTcpHealth

func GetTcpHealth(address string) map[string]string

Types

type HttpProbe

type HttpProbe struct {
	Name         string
	Address      string
	ResultsChan  chan *service.HealthStatus
	Ctx          context.Context
	Cancel       context.CancelFunc
	TimeInterval int
	HostNode     *client.HostNode
}

func (*HttpProbe) HttpCheck

func (h *HttpProbe) HttpCheck()

type ShellProbe

type ShellProbe struct {
	Name         string
	Address      string
	ResultsChan  chan *service.HealthStatus
	Ctx          context.Context
	Cancel       context.CancelFunc
	TimeInterval int
	HostNode     *client.HostNode
}

func (*ShellProbe) ShellCheck

func (h *ShellProbe) ShellCheck()

type TcpProbe

type TcpProbe struct {
	Name         string
	Address      string
	ResultsChan  chan *service.HealthStatus
	Ctx          context.Context
	Cancel       context.CancelFunc
	TimeInterval int
	HostNode     *client.HostNode
}

func (*TcpProbe) TcpCheck

func (h *TcpProbe) TcpCheck()

Jump to

Keyboard shortcuts

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