Versions in this module Expand all Collapse all v1 v1.0.5 Jan 18, 2019 v1.0.4 Jan 2, 2019 v1.0.3 Dec 23, 2018 v1.0.2 Dec 23, 2018 Changes in this version type MysqlUserRPCRequest + SSL string v1.0.1 Sep 12, 2018 Changes in this version + const ErrorBackupNotFound + const ErrorChangeMaster + const ErrorInvalidGTID + const ErrorInvalidRequest + const ErrorInvalidViewID + const ErrorMySQLDown + const ErrorMysqldNotRunning + const ErrorRPCCall + const ErrorServerDown + const ErrorVoteNotGranted + const OK + const RPCBackupApplyLog + const RPCBackupCancel + const RPCBackupDo + const RPCBackupStatus + const RPCError_MySQLUnpromotable + const RPCHADisable + const RPCHAEnable + const RPCHATryToLeader + const RPCMysqlChangePassword + const RPCMysqlCreateNormalUser + const RPCMysqlCreateSuperUser + const RPCMysqlCreateUserWithPrivileges + const RPCMysqlDropUser + const RPCMysqlGetUser + const RPCMysqlIsWorking + const RPCMysqlResetMaster + const RPCMysqlResetSlaveAll + const RPCMysqlSetGlobalSysVar + const RPCMysqlStartSlave + const RPCMysqlStatus + const RPCMysqlStopSlave + const RPCMysqldIsRuning + const RPCMysqldKill + const RPCMysqldShutDown + const RPCMysqldStart + const RPCMysqldStartMonitor + const RPCMysqldStatus + const RPCMysqldStopMonitor + const RPCNodes + const RPCNodesAdd + const RPCNodesRemove + const RPCRaftDisablePurgeBinlog + const RPCRaftEnablePurgeBinlog + const RPCRaftHeartbeat + const RPCRaftRequestVote + const RPCRaftStatus + const RPCServerStatus + const RRCServerPing + type BackupRPCRequest struct + BackupDir string + From string + IOPSLimits int + SSHHost string + SSHPasswd string + SSHPort int + SSHUser string + XtrabackupBinDir string + func NewBackupRPCRequest() *BackupRPCRequest + type BackupRPCResponse struct + RetCode string + func NewBackupRPCResponse(code string) *BackupRPCResponse + type BackupStats struct + AppLogErrs uint64 + AppLogs uint64 + BackupErrs uint64 + Backups uint64 + Cancels uint64 + LastCMD string + LastError string + type ConfigStatus struct + BackupDir string + BackupIOPSLimits int + LogLevel string + MysqlAdmin string + MysqlHost string + MysqlPingTimeout int + MysqlPort int + MysqlReplUser string + MysqldBaseDir string + MysqldDefaultsFile string + RaftDataDir string + RaftElectionTimeout int + RaftHeartbeatTimeout int + RaftRPCRequestTimeout int + RaftStartVipCommand string + RaftStopVipCommand string + XtrabackupBinDir string + type GTID struct + Executed_GTID_Set string + Last_Error string + Last_IO_Error string + Last_SQL_Error string + Master_Log_File string + Read_Master_Log_Pos uint64 + Relay_Master_Log_File string + Retrieved_GTID_Set string + Seconds_Behind_Master string + Slave_IO_Running bool + Slave_IO_Running_Str string + Slave_SQL_Running bool + Slave_SQL_Running_State string + Slave_SQL_Running_Str string + type HARPCRequest struct + From string + func NewHARPCRequest() *HARPCRequest + func (req *HARPCRequest) GetFrom() string + type HARPCResponse struct + RetCode string + func NewHARPCResponse(code string) *HARPCResponse + type MYSQLD_STATUS string + const MYSQLD_APPLYLOGGING + const MYSQLD_BACKUPCANCELED + const MYSQLD_BACKUPING + const MYSQLD_BACKUPNONE + const MYSQLD_ISRUNNING + const MYSQLD_NOTRUNNING + const MYSQLD_SHUTDOWNING + const MYSQLD_UNKNOW + type MysqlRPCRequest struct + From string + func NewMysqlRPCRequest() *MysqlRPCRequest + type MysqlRPCResponse struct + GTID GTID + RetCode string + func NewMysqlRPCResponse(code string) *MysqlRPCResponse + func (rsp *MysqlRPCResponse) GetGTID() GTID + type MysqlStats struct + MysqlDowns uint64 + type MysqlStatusRPCRequest struct + From string + func NewMysqlStatusRPCRequest() *MysqlStatusRPCRequest + type MysqlStatusRPCResponse struct + GTID GTID + Options string + RetCode string + Stats *MysqlStats + Status string + func NewMysqlStatusRPCResponse(code string) *MysqlStatusRPCResponse + type MysqlUser struct + Host string + User string + type MysqlUserRPCRequest struct + Database string + From string + Host string + Passwd string + Privileges string + Table string + User string + func NewMysqlUserRPCRequest() *MysqlUserRPCRequest + type MysqlUserRPCResponse struct + RetCode string + Users []MysqlUser + func NewMysqlUserRPCResponse(code string) *MysqlUserRPCResponse + type MysqlVarRPCRequest struct + From string + VarSql string + func NewMysqlVarRPCRequest() *MysqlVarRPCRequest + type MysqlVarRPCResponse struct + RetCode string + func NewMysqlVarRPCResponse(code string) *MysqlVarRPCResponse + type MysqldRPCRequest struct + From string + func NewMysqldRPCRequest() *MysqldRPCRequest + type MysqldRPCResponse struct + RetCode string + func NewMysqldRPCResponse(code string) *MysqldRPCResponse + type MysqldStats struct + MonitorStarts uint64 + MonitorStops uint64 + MysqldStarts uint64 + MysqldStops uint64 + type MysqldStatusRPCRequest struct + From string + func NewMysqldStatusRPCRequest() *MysqldStatusRPCRequest + type MysqldStatusRPCResponse struct + BackupInfo string + BackupStats *BackupStats + BackupStatus MYSQLD_STATUS + MonitorInfo string + MysqldInfo string + MysqldStats *MysqldStats + RetCode string + func NewMysqldStatusRPCResponse(code string) *MysqldStatusRPCResponse + type NodeRPCRequest struct + From string + Nodes []string + func NewNodeRPCRequest() *NodeRPCRequest + func (req *NodeRPCRequest) GetFrom() string + func (req *NodeRPCRequest) GetNodes() []string + type NodeRPCResponse struct + EpochID uint64 + Leader string + Nodes []string + RetCode string + State string + ViewID uint64 + func NewNodeRPCResponse(code string) *NodeRPCResponse + func (rsp *NodeRPCResponse) GetLeader() string + func (rsp *NodeRPCResponse) GetNodes() []string + type RAFTMYSQL_STATUS string + const RAFTMYSQL_NONE + const RAFTMYSQL_WAITUNTILAFTERGTID + type Raft struct + EpochID uint64 + From string + Leader string + State string + To string + ViewID uint64 + type RaftRPCRequest struct + GTID GTID + Peers []string + Raft Raft + Repl Repl + func NewRaftRPCRequest() *RaftRPCRequest + func (req *RaftRPCRequest) GetEpochID() uint64 + func (req *RaftRPCRequest) GetFrom() string + func (req *RaftRPCRequest) GetGTID() GTID + func (req *RaftRPCRequest) GetPeers() []string + func (req *RaftRPCRequest) GetRepl() Repl + func (req *RaftRPCRequest) GetViewID() uint64 + func (req *RaftRPCRequest) SetFrom(from string) + type RaftRPCResponse struct + GTID GTID + Raft Raft + Relay_Master_Log_File string + RetCode string + func NewRaftRPCResponse(code string) *RaftRPCResponse + func (rsp *RaftRPCResponse) GetEpochID() uint64 + func (rsp *RaftRPCResponse) GetFrom() string + func (rsp *RaftRPCResponse) GetGTID() GTID + func (rsp *RaftRPCResponse) GetLeader() string + func (rsp *RaftRPCResponse) GetViewID() uint64 + func (rsp *RaftRPCResponse) SetFrom(from string) + type RaftStats struct + CandidateDegrades uint64 + CandidatePromotes uint64 + HaEnables uint64 + LeaderDegrades uint64 + LeaderGetHeartbeatRequests uint64 + LeaderGetVoteRequests uint64 + LeaderPromotes uint64 + LeaderPurgeBinlogFails uint64 + LeaderPurgeBinlogs uint64 + LessHearbeatAcks uint64 + Pings uint64 + RaftMysqlStatus RAFTMYSQL_STATUS + StateUptimes uint64 + type RaftStatusRPCRequest struct + func NewRaftStatusRPCRequest() *RaftStatusRPCRequest + type RaftStatusRPCResponse struct + RetCode string + State string + Stats *RaftStats + func NewRaftStatusRPCResponse(code string) *RaftStatusRPCResponse + type Repl struct + Master_Host string + Master_Port int + Repl_Password string + Repl_User string + type ServerRPCRequest struct + From string + Msg string + func NewServerRPCRequest() *ServerRPCRequest + func (req *ServerRPCRequest) GetFrom() string + type ServerRPCResponse struct + Config *ConfigStatus + RetCode string + ServerUptimes uint64 + Stats *ServerStats + func NewServerRPCResponse(code string) *ServerRPCResponse + type ServerStats struct + Uptimes uint64