package
8.5.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb-binlog.git
Documentation: pkg.go.dev

# Functions

AnalyzeNodeID returns nodeID by analyze key path.
CloneStatus returns a new status with same value.
NewEtcdRegistry returns an EtcdRegistry client.
NewStatus returns a new status.
NodesStatusFromEtcdNode returns nodes' status under root node.

# Constants

Closing means the node is closing, and the state will be Offline when closed.
Offline means the node is offline, and will not provide service.
Online means the node can receive request.
Paused means the node is already paused.
Pausing means the node is pausing.

# Variables

DefaultRootPath is the root path of the keys stored in etcd, the `v1` is the tidb-binlog's version.
DrainerNode is the name of drainer.
NodePrefix is the map (node => it's prefix in storage).
PumpNode is the name of pump.

# Structs

EtcdRegistry wraps the reactions with etcd.
Label is key/value pairs that are attached to objects.
Status describes the status information of a tidb-binlog node in etcd.

# Interfaces

Node defines pump node.