checker

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedEndpointType = errors.New("given endpoint type not supported")

Functions

This section is empty.

Types

type ConsulLeaderChecker

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

func NewConsulLeaderChecker

func NewConsulLeaderChecker(con vipconfig.Config) (*ConsulLeaderChecker, error)

func NewConsulLeaderChecker(endpoint, key, nodename string) (*ConsulLeaderChecker, error) {

func (*ConsulLeaderChecker) GetChangeNotificationStream

func (c *ConsulLeaderChecker) GetChangeNotificationStream(ctx context.Context, out chan<- bool) error

type EtcdLeaderChecker

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

func NewEtcdLeaderChecker

func NewEtcdLeaderChecker(con vipconfig.Config) (*EtcdLeaderChecker, error)

func NewEtcdLeaderChecker(endpoint, key, nodename string, etcd_user string, etcd_password string) (*EtcdLeaderChecker, error) {

func (*EtcdLeaderChecker) GetChangeNotificationStream

func (e *EtcdLeaderChecker) GetChangeNotificationStream(ctx context.Context, out chan<- bool) error

type LeaderChecker

type LeaderChecker interface {
	GetChangeNotificationStream(ctx context.Context, out chan<- bool) error
}

func NewLeaderChecker

func NewLeaderChecker(con vipconfig.Config) (LeaderChecker, error)

func NewLeaderChecker(endpointType, endpoint, key, nodename string, etcd_user string, etcd_password string) (LeaderChecker, error) {

Jump to

Keyboard shortcuts

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