poller

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	Active bool   `json:"active"`
}

type ClusterStatusPoller

type ClusterStatusPoller interface {
	Start(<-chan struct{}) error
	NeedLeaderElection() bool
	Clusters() Clusters
}

func NewClustersStatusPoller

func NewClustersStatusPoller(globalConfig *mode.GlobalConfig) (ClusterStatusPoller, error)

type Clusters

type Clusters []Cluster

type ClustersStatusPoller

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

func (*ClustersStatusPoller) Clusters

func (p *ClustersStatusPoller) Clusters() Clusters

func (*ClustersStatusPoller) NeedLeaderElection

func (p *ClustersStatusPoller) NeedLeaderElection() bool

func (*ClustersStatusPoller) Start

func (p *ClustersStatusPoller) Start(stop <-chan struct{}) error

Jump to

Keyboard shortcuts

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