Documentation
¶
Index ¶
Constants ¶
View Source
const ( GaleraStateFileName = "grastate.dat" BootstrapFileName = "1-bootstrap.cnf" BootstrapFile = `[galera] wsrep_new_cluster="ON"` RecoveryFileName = "2-recovery.cnf" RecoveryLogFileName = "mariadb.err" )
Variables ¶
View Source
var ( RecoveryFile = fmt.Sprintf(`[galera] log_error=%s wsrep_recover="ON"`, RecoveryLogFileName) )
Functions ¶
This section is empty.
Types ¶
type GaleraRecoverer ¶
type GaleraRecoverer interface { GetUUID() string GetSeqno() int Compare(other GaleraRecoverer) int }
type GaleraState ¶
type GaleraState struct { Version string `json:"version"` UUID string `json:"uuid"` Seqno int `json:"seqno"` SafeToBootstrap bool `json:"safeToBootstrap"` }
func (*GaleraState) Compare ¶
func (g *GaleraState) Compare(other GaleraRecoverer) int
func (*GaleraState) GetSeqno ¶
func (g *GaleraState) GetSeqno() int
func (*GaleraState) GetUUID ¶
func (g *GaleraState) GetUUID() string
func (*GaleraState) Marshal ¶
func (g *GaleraState) Marshal() ([]byte, error)
func (*GaleraState) Unmarshal ¶
func (g *GaleraState) Unmarshal(text []byte) error
Click to show internal directories.
Click to hide internal directories.