core

package
v0.0.0-...-5357738 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 23 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL