Documentation ¶
Index ¶
- Constants
- func BinlogShouldBeFetched(backupStartUploadTime time.Time, endTS *time.Time, object storage.Object) bool
- func ExtractBinlogName(object storage.Object, folder storage.Folder) string
- func GetBinlogConfigs() (endTS *time.Time, dstFolder string, err error)
- func HandleBinlogPush(uploader *Uploader)
- func HandleStreamFetch(backupName string, folder storage.Folder)
- func HandleStreamPush(uploader *Uploader)
- type Backup
- type MySQLLogsCache
- type StreamSentinelDto
- type Uploader
Constants ¶
View Source
const ( StreamPrefix = "stream_" BinlogPath = "binlog_" + utility.VersionStr + "/" DatasourceNameSetting = "WALG_MYSQL_DATASOURCE_NAME" BinlogEndTsSetting = "WALG_MYSQL_BINLOG_END_TS" BinlogDstSetting = "WALG_MYSQL_BINLOG_DST" BinlogSrcSetting = "WALG_MYSQL_BINLOG_SRC" SslCaSetting = "WALG_MYSQL_SSL_CA" )
View Source
const MysqlBinlogCacheFileName = ".walg_mysql_binlogs_cache"
Variables ¶
This section is empty.
Functions ¶
func BinlogShouldBeFetched ¶
func ExtractBinlogName ¶
func HandleBinlogPush ¶
func HandleBinlogPush(uploader *Uploader)
func HandleStreamFetch ¶
func HandleStreamPush ¶
func HandleStreamPush(uploader *Uploader)
Types ¶
type Backup ¶
func (*Backup) FetchStreamSentinel ¶
func (backup *Backup) FetchStreamSentinel() (StreamSentinelDto, error)
TODO : unit tests
type MySQLLogsCache ¶
type MySQLLogsCache struct {
LastArchivedBinlog string `json:"LastArchivedBinlog"`
}
type StreamSentinelDto ¶
Click to show internal directories.
Click to hide internal directories.