Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CronJob = make(map[int]*cron.Cron)
Functions ¶
func AfterBak ¶
func AfterBak(b *BakHandler)
func NewDingSender ¶
func NewDingSender(token, secret, message string) *dingSendMessage
Types ¶
type BakHandler ¶
type BakHandler struct { TaskID int Cron *cron.Cron Engine *xorm.Engine Host string BackInfoId string PassWord string User string Port string DbName string BackupCycle string KeepNumber int ISAllDBBak int DingConfig *dao.DingDatabase OssConfig *dao.OssDatabase DingStatus int OssStatus int BakStatus int BakMsg string FileName string FileSize int }
func NewBakHandler ¶
func NewBakHandler(detail *dao.TaskDetail) (*BakHandler, error)
func (*BakHandler) BeforBak ¶
func (b *BakHandler) BeforBak()
func (*BakHandler) IsStart ¶
func (b *BakHandler) IsStart(tid int) bool
func (*BakHandler) Run ¶
func (b *BakHandler) Run()
func (*BakHandler) RunMysqlDump ¶
func (b *BakHandler) RunMysqlDump() error
func (*BakHandler) StartBak ¶
func (b *BakHandler) StartBak() error
func (*BakHandler) StopBak ¶
func (b *BakHandler) StopBak(tid int) error
func (*BakHandler) StoreDatabase ¶
func (b *BakHandler) StoreDatabase() error
Click to show internal directories.
Click to hide internal directories.