rainbond: github.com/goodrain/rainbond/util/prober/probes Index | Files

package probe

import "github.com/goodrain/rainbond/util/prober/probes"

Index

Package Files

http.go probe.go tcp.go

func GetHTTPHealth Uses

func GetHTTPHealth(address string) map[string]string

GetHTTPHealth get http health

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 *v1.HealthStatus
    Ctx          context.Context
    Cancel       context.CancelFunc
    TimeInterval int
    MaxErrorsNum int
}

HTTPProbe probes through the http protocol

func (*HTTPProbe) Check Uses

func (h *HTTPProbe) Check()

Check starts http probe.

func (*HTTPProbe) HTTPCheck Uses

func (h *HTTPProbe) HTTPCheck()

HTTPCheck http check

func (*HTTPProbe) Stop Uses

func (h *HTTPProbe) Stop()

Stop stops http probe.

type Probe Uses

type Probe interface {
    Check()
    Stop()
}

Probe probe

func CreateProbe Uses

func CreateProbe(ctx context.Context, statusChan chan *v1.HealthStatus, v *v1.Service) Probe

CreateProbe create probe

type TCPProbe Uses

type TCPProbe struct {
    Name         string
    Address      string
    ResultsChan  chan *v1.HealthStatus
    Ctx          context.Context
    Cancel       context.CancelFunc
    TimeInterval int
    MaxErrorsNum int
}

TCPProbe probes through the tcp protocol

func (*TCPProbe) Check Uses

func (h *TCPProbe) Check()

Check starts tcp probe.

func (*TCPProbe) Stop Uses

func (h *TCPProbe) Stop()

Stop stops tcp probe.

func (*TCPProbe) TCPCheck Uses

func (h *TCPProbe) TCPCheck()

TCPCheck -

Package probe imports 10 packages (graph) and is imported by 1 packages. Updated 2019-05-15. Refresh now. Tools for package owners.