Versions in this module Expand all Collapse all v1 v1.1.4 Dec 25, 2020 Changes in this version type BackupConfig + MaxAllowedLocalTrxCount int v1.1.3 Sep 18, 2020 v1.0.9 Mar 13, 2020 v1.0.8 Nov 29, 2019 v1.0.7 Jul 23, 2019 v1.0.5 Jan 18, 2019 Changes in this version type MysqlConfig + Version string type RaftConfig + SuperIDLE bool v1.0.4 Jan 2, 2019 Changes in this version type RaftConfig + CandidateWaitFor2Nodes int v1.0.3 Dec 23, 2018 v1.0.2 Dec 23, 2018 v1.0.1 Sep 12, 2018 Changes in this version + func WriteConfig(path string, conf *Config) error + type BackupConfig struct + Admin string + BackupDir string + BackupIOPSLimits int + Basedir string + DefaultsFile string + Host string + MysqldMonitorInterval int + Parallel int + Passwd string + Port int + SSHHost string + SSHPasswd string + SSHPort int + SSHUser string + UseMemory string + XtrabackupBinDir string + func DefaultBackupConfig() *BackupConfig + func (c *BackupConfig) UnmarshalJSON(b []byte) error + type Config struct + Backup *BackupConfig + Log *LogConfig + Mysql *MysqlConfig + RPC *RPCConfig + Raft *RaftConfig + Replication *ReplicationConfig + Server *ServerConfig + func DefaultConfig() *Config + func LoadConfig(path string) (*Config, error) + type LogConfig struct + Level string + func DefaultLogConfig() *LogConfig + func (c *LogConfig) UnmarshalJSON(b []byte) error + type MysqlConfig struct + Admin string + AdmitDefeatPingCnt int + Basedir string + DefaultsFile string + Host string + MasterSysVars string + Passwd string + PingTimeout int + Port int + ReplHost string + ReplPasswd string + ReplUser string + SlaveSysVars string + func DefaultMysqlConfig() *MysqlConfig + func (c *MysqlConfig) UnmarshalJSON(b []byte) error + type RPCConfig struct + RequestTimeout int + func DefaultRPCConfig() *RPCConfig + func (c *RPCConfig) UnmarshalJSON(b []byte) error + type RaftConfig struct + AdmitDefeatHtCnt int + ElectionTimeout int + HeartbeatTimeout int + LeaderStartCommand string + LeaderStopCommand string + MetaDatadir string + PurgeBinlogDisabled bool + PurgeBinlogInterval int + RequestTimeout int + StartAsIDLE bool + func DefaultRaftConfig() *RaftConfig + func (c *RaftConfig) UnmarshalJSON(b []byte) error + type ReplicationConfig struct + Passwd string + User string + func DefaultReplicationConfig() *ReplicationConfig + func (c *ReplicationConfig) UnmarshalJSON(b []byte) error + type ServerConfig struct + Endpoint string + func DefaultServerConfig() *ServerConfig + func (c *ServerConfig) UnmarshalJSON(b []byte) error