rdiscover

package
v1.28.0-alpha.29 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package rdiscover xxx

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