watcher

package
v0.0.0-...-3ac4113 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeOut = 60 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertQueue

type AlertQueue struct {
	// contains filtered or unexported fields
}

func NewAlertQueue

func NewAlertQueue() *AlertQueue

func (*AlertQueue) WriteBackAlert

func (aq *AlertQueue) WriteBackAlert(alertId string)

type Executor

type Executor struct {
	Name      string
	TaskCount int
}

type ExecutorInfo

type ExecutorInfo struct {
	Name      string
	TaskCount int
}

ExecutorInfo is the service register information to etcd

type ExecutorWatcher

type ExecutorWatcher struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewExecutorWatcher

func NewExecutorWatcher() *ExecutorWatcher

func (*ExecutorWatcher) GetExecutorCount

func (ew *ExecutorWatcher) GetExecutorCount() int

func (*ExecutorWatcher) GetExecutors

func (ew *ExecutorWatcher) GetExecutors() []ExecutorInfo

func (*ExecutorWatcher) Serve

func (ew *ExecutorWatcher) Serve()

type HealthChecker

type HealthChecker struct {
	// contains filtered or unexported fields
}

func NewHealthChecker

func NewHealthChecker() *HealthChecker

func (*HealthChecker) HealthCheck

func (hc *HealthChecker) HealthCheck()

func (*HealthChecker) SetExecutorWatcher

func (hc *HealthChecker) SetExecutorWatcher(executorWatcher *ExecutorWatcher)

type Member

type Member struct {
	Name      string
	TaskCount int
}

Member is a client machine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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