rdiscover

package
v0.20.13 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RDiscover

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

RDiscover register and discover

func NewRDiscover

func NewRDiscover(zkserv, subPath, clusterid, proxy, address string, metricPort uint) *RDiscover

NewRDiscover new a register discover object to register zookeeper

func (*RDiscover) CheckMasterStatus

func (r *RDiscover) CheckMasterStatus()

CheckMasterStatus timer to check master status

func (*RDiscover) GetBCSLBServList

func (r *RDiscover) GetBCSLBServList() []types.LoadBalanceInfo

GetBCSLBServList get bcs lb as awselb/awsclb target

func (*RDiscover) IsMaster

func (r *RDiscover) IsMaster() bool

IsMaster return a bool to indicate whether i am a master

func (*RDiscover) Start

func (r *RDiscover) Start() error

Start the register and discover

func (*RDiscover) Stop

func (r *RDiscover) Stop() error

Stop the register and discover

Jump to

Keyboard shortcuts

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