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

package healthy

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

Index

Package Files

health_manager.go

type Manager Uses

type Manager interface {
    GetServiceHealthy(serviceName string) (*service.HealthStatus, bool)
    GetCurrentServiceHealthy(serviceName string) (*service.HealthStatus, error)
    WatchServiceHealthy(serviceName string) Watcher
    CloseWatch(serviceName string, id string) error
    Start(hostNode *client.HostNode) error
    AddServices(*[]*service.Service) error
    GetServiceHealth() map[string]*service.HealthStatus
    AddServicesAndUpdate(*[]*service.Service) error
    Stop() error
    DisableWatcher(serviceName, watcherID string)
    EnableWatcher(serviceName, watcherID string)
}

Manager Manager

func CreateManager Uses

func CreateManager() Manager

CreateManager create manager

type Watcher Uses

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

Watcher watcher

Directories

PathSynopsis
probe

Package healthy imports 9 packages (graph) and is imported by 2 packages. Updated 2019-08-23. Refresh now. Tools for package owners.