cmd

package
v0.16.8 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdProxy = &cobra.Command{
	Use:     "stolon-proxy",
	Run:     proxy,
	Version: cmd.Version,
}

Functions

func Execute

func Execute()

func GetProxyDBs added in v0.16.7

func GetProxyDBs(cd *cluster.ClusterData) []*net.TCPAddr

Types

type ClusterChecker

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

func NewClusterChecker

func NewClusterChecker(uid string, cfg config) (*ClusterChecker, error)

func (*ClusterChecker) Check

func (c *ClusterChecker) Check() error

Check reads the cluster data and applies the right pollon configuration.

func (*ClusterChecker) SetProxyInfo

func (c *ClusterChecker) SetProxyInfo(e store.Store, generation int64, proxyTimeout time.Duration) error

func (*ClusterChecker) Start

func (c *ClusterChecker) Start() error

func (*ClusterChecker) TimeoutChecker

func (c *ClusterChecker) TimeoutChecker(checkOkCh chan struct{})

Jump to

Keyboard shortcuts

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