Documentation ¶
Overview ¶
Package topoutil provides utilities to read the component topology.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNS = errorx.NewNamespace("topo_util") ErrEtcdRequestFailed = ErrNS.NewType("etcd_request_failed") ErrInvalidTopologyData = ErrNS.NewType("invalid_topology_data") )
Functions ¶
Types ¶
type ComponentStatus ¶
type ComponentStatus uint
const ( ComponentStatusUnreachable ComponentStatus = 0 ComponentStatusUp ComponentStatus = 1 ComponentStatusTombstone ComponentStatus = 2 ComponentStatusOffline ComponentStatus = 3 ComponentStatusDown ComponentStatus = 4 )
type PDInfo ¶
type StandardComponentInfo ¶
type StoreInfo ¶
type StoreInfo struct { GitHash string `json:"git_hash"` Version string `json:"version"` IP string `json:"ip"` Port uint `json:"port"` DeployPath string `json:"deploy_path"` Status ComponentStatus `json:"status"` StatusPort uint `json:"status_port"` Labels map[string]string `json:"labels"` StartTimestamp int64 `json:"start_timestamp"` }
StoreInfo may be either a TiKV store info or a TiFlash store info
type TiDBInfo ¶
Click to show internal directories.
Click to hide internal directories.