zookeeper

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZkServiceCache *cache.Cache

Functions

This section is empty.

Types

type ZkService

type ZkService struct {
	ZkNodes []string
	ZkPort  int
	Conn    *zk.Conn
	Event   <-chan zk.Event
}

func GetZkService

func GetZkService(clusterName string) (*ZkService, error)

func NewZkService

func NewZkService(nodes []string, port int) (*ZkService, error)

func (*ZkService) DeleteAll added in v1.3.1

func (z *ZkService) DeleteAll(node string) (err error)

func (*ZkService) DeletePathUntilNode added in v1.3.2

func (z *ZkService) DeletePathUntilNode(path, endNode string) error

func (*ZkService) GetReplicatedTableStatus

func (z *ZkService) GetReplicatedTableStatus(conf *model.CKManClickHouseConfig) ([]model.ZkReplicatedTableStatus, error)

Jump to

Keyboard shortcuts

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