Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrcError ¶ added in v0.1.4
func NewOrcErrorMsg ¶ added in v0.1.4
Types ¶
type BinlogCoordinates ¶
type BinlogCoordinates struct {
LogFile string
LogPos int64
Type BinlogType
}
BinlogCoordinates described binary log coordinates in the form of log file & log position.
type Instance ¶
type Instance struct {
Key InstanceKey
InstanceAlias string
Uptime uint
ServerID uint
ServerUUID string
Version string
VersionComment string
FlavorName string
ReadOnly bool
Binlog_format string
BinlogRowImage string
LogBinEnabled bool
LogSlaveUpdatesEnabled bool
SelfBinlogCoordinates BinlogCoordinates
MasterKey InstanceKey
IsDetachedMaster bool
Slave_SQL_Running bool
Slave_IO_Running bool
HasReplicationFilters bool
GTIDMode string
SupportsOracleGTID bool
UsingOracleGTID bool
UsingMariaDBGTID bool
UsingPseudoGTID bool
ReadBinlogCoordinates BinlogCoordinates
ExecBinlogCoordinates BinlogCoordinates
IsDetached bool
RelaylogCoordinates BinlogCoordinates
LastSQLError string
LastIOError string
SecondsBehindMaster NullInt64
SQLDelay uint
ExecutedGtidSet string
GtidPurged string
SlaveLagSeconds NullInt64
ClusterName string
SuggestedClusterAlias string
DataCenter string
PhysicalEnvironment string
ReplicationDepth uint
IsCoMaster bool
HasReplicationCredentials bool
ReplicationCredentialsAvailable bool
SemiSyncEnforced bool
SemiSyncMasterEnabled bool
SemiSyncReplicaEnabled bool
LastSeenTimestamp string
IsLastCheckValid bool
IsUpToDate bool
IsRecentlyChecked bool
SecondsSinceLastSeen NullInt64
CountMySQLSnapshots int
LastDiscoveryLatency time.Duration
}
type InstanceKey ¶
type Interface ¶ added in v0.1.4
type Interface interface {
Discover(host string, port int) error
Forget(host string, port int) error
Master(clusterHint string) (*Instance, error)
Cluster(cluster string) ([]Instance, error)
ForgetCluster(cluster string) error
AuditRecovery(cluster string) ([]TopologyRecovery, error)
AckRecovery(id int64, commnet string) error
SetHostWritable(key InstanceKey) error
SetHostReadOnly(key InstanceKey) error
BeginMaintenance(key InstanceKey, owner, reason string) error
EndMaintenance(key InstanceKey) error
}
func NewFromUri ¶
type TopologyRecovery ¶ added in v0.1.4
type TopologyRecovery struct {
Id int64
UID string
SuccessorKey *InstanceKey
SuccessorAlias string
IsActive bool
IsSuccessful bool
AllErrors []string
RecoveryStartTimestamp string
RecoveryEndTimestamp string
ProcessingNodeHostname string
ProcessingNodeToken string
Acknowledged bool
AcknowledgedAt string
AcknowledgedBy string
AcknowledgedComment string
LastDetectionId int64
RelatedRecoveryId int64
}
Click to show internal directories.
Click to hide internal directories.