rainbond: github.com/goodrain/rainbond/node/nodem/healthy/probe Index | Files

package probe

import "github.com/goodrain/rainbond/node/nodem/healthy/probe"

Index

Package Files

http_probe.go probe.go shell_probe.go tcp_probe.go

func GetHTTPHealth Uses

func GetHTTPHealth(address string) map[string]string

GetHTTPHealth get http health

func GetShellHealth Uses

func GetShellHealth(address string) map[string]string

func GetTcpHealth Uses

func GetTcpHealth(address string) map[string]string

GetTcpHealth get tcp health

type HttpProbe Uses

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

func (*HttpProbe) Check Uses

func (h *HttpProbe) Check()

Check check

func (*HttpProbe) HTTPCheck Uses

func (h *HttpProbe) HTTPCheck()

HTTPCheck http check

func (*HttpProbe) Stop Uses

func (h *HttpProbe) Stop()

Stop stop

type Probe Uses

type Probe interface {
    Check()
    Stop()
}

Probe probe

func CreateProbe Uses

func CreateProbe(ctx context.Context, hostNode *client.HostNode, statusChan chan *service.HealthStatus, v *service.Service) Probe

CreateProbe create probe

type ShellProbe Uses

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

func (*ShellProbe) Check Uses

func (h *ShellProbe) Check()

func (*ShellProbe) ShellCheck Uses

func (h *ShellProbe) ShellCheck()

func (*ShellProbe) Stop Uses

func (h *ShellProbe) Stop()

type TcpProbe Uses

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

func (*TcpProbe) Check Uses

func (h *TcpProbe) Check()

func (*TcpProbe) Stop Uses

func (h *TcpProbe) Stop()

func (*TcpProbe) TcpCheck Uses

func (h *TcpProbe) TcpCheck()

Package probe imports 11 packages (graph) and is imported by 1 packages. Updated 2018-12-22. Refresh now. Tools for package owners.