config

package
v0.0.0-...-c0686e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetZkInfoFromClusterName

func GetZkInfoFromClusterName(clusterName string,
	zkJSONBytes []byte) (zkURL string, err error)

GetZkInfoFromClusterName returns the zk information of this cluster provided

func ReadZKConfigFile

func ReadZKConfigFile() ([]byte, error)

ReadZKConfigFile read the clusters info config file

Types

type ClusterInfoType

type ClusterInfoType struct {
	ClusterName string
	ZkURL       string
}

ClusterInfoType is the struct containing the zk information of one cluster

type ClustersInfoType

type ClustersInfoType struct {
	Clusters []ClusterInfoType
}

ClustersInfoType is the struct containing the zk information of all the clusters

Jump to

Keyboard shortcuts

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