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

package prober

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

Index

Package Files

manager.go

type Prober Uses

type Prober interface {
    GetServiceHealthy(serviceName string) (*v1.HealthStatus, bool)
    GetCurrentServiceHealthy(serviceName string) (*v1.HealthStatus, error)
    WatchServiceHealthy(serviceName string) Watcher
    CloseWatch(serviceName string, id string) error
    Start()
    AddServices(in []*v1.Service)
    CheckIfExist(in *v1.Service) bool
    SetServices([]*v1.Service)
    GetServices() []*v1.Service
    GetServiceHealth() map[string]*v1.HealthStatus
    SetAndUpdateServices([]*v1.Service) error
    AddAndUpdateServices([]*v1.Service) error
    UpdateServiceProbe(service *v1.Service)
    UpdateServicesProbe(services []*v1.Service)
    Stop() error
    DisableWatcher(serviceName, watcherID string)
    EnableWatcher(serviceName, watcherID string)
    GetProbe(name string) probe.Probe
    StopProbes(names []string)
}

Prober Prober

func NewProber Uses

func NewProber(ctx context.Context, cancel context.CancelFunc) Prober

NewProber creates a new prober.

type Watcher Uses

type Watcher interface {
    GetID() string
    GetServiceName() string
    Watch() <-chan *v1.HealthStatus
    Close() error
}

Watcher watcher

Directories

PathSynopsis
probes
types/v1

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