Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLConn ¶
type MySQLConn struct {
DB *gorm.DB
Username string
Password string
Host string
Port int
DBName string
}
func (*MySQLConn) QuerySlaveStatus ¶
func (cfg *MySQLConn) QuerySlaveStatus() (data *QuerySlaveStatusResult, err error)
type QuerySlaveStatusResult ¶
type QuerySlaveStatusResult struct {
SecondsBehindMaster int `gorm:"column:Seconds_Behind_Master"`
SlaveIORunning string `gorm:"column:Slave_IO_Running"`
SlaveSQLRunning string `gorm:"column:Slave_SQL_Running"`
LastError string `gorm:"column:Last_Error"`
LastIOError string `gorm:"column:Last_IO_Error"`
LastSQLError string `gorm:"column:Last_SQL_Error"`
}
Click to show internal directories.
Click to hide internal directories.