mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
13 lines
340 B
Go
13 lines
340 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"mayfly-go/internal/db/domain/entity"
|
|
)
|
|
|
|
type DbInstanceSvc interface {
|
|
Backup(ctx context.Context, backupHistory *entity.DbBackupHistory) (*entity.BinlogInfo, error)
|
|
Restore(ctx context.Context, task *entity.DbRestore) error
|
|
FetchBinlogs(ctx context.Context, downloadLatestBinlogFile bool) error
|
|
}
|