Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDBConnection ¶
CheckDBConnection ...
Types ¶
type Checker ¶
type Checker interface { CheckConnection() string CheckReplicaStatus() CheckReplicaConsistency() }
Checker ...
func NewChecker ¶
func NewChecker(c config.ClusterConfig) Checker
NewChecker create a new instance with given config
type Cluster ¶
type Cluster struct { Username string Password string VIPNode config.Vip AtlasNodes map[string]config.Atlas DBNodes map[string]config.Database }
Cluster ...
func (*Cluster) CheckConnection ¶
CheckConnection check all datasource connection
func (*Cluster) CheckReplicaConsistency ¶
func (c *Cluster) CheckReplicaConsistency()
func (*Cluster) CheckReplicaStatus ¶
func (c *Cluster) CheckReplicaStatus()
Click to show internal directories.
Click to hide internal directories.