backups

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpBackupService

type ImpBackupService struct {
	markup.Component `id:"DatabaseBackupService" class:"life"`

	AppDataService    service.AppDataService    `inject:"#AppDataService"`
	AppRuntimeService service.AppRuntimeService `inject:"#AppRuntimeService"`
	FilesysService    service.FileSystemService `inject:"#FileSystemService"`
	BackupDao         dao.Backup                `inject:"#wpm-database-backup-dao"`

	DoDump bool `inject:"${wpm.options.dump}"`
}

ImpBackupService ...

func (*ImpBackupService) Export

func (inst *ImpBackupService) Export(c context.Context, o *dto.Backup) (*dto.Backup, error)

Export ...

func (*ImpBackupService) ExportDumpData added in v0.1.1

func (inst *ImpBackupService) ExportDumpData(c context.Context) error

ExportDumpData ...

func (*ImpBackupService) GetLifeRegistration added in v0.1.1

func (inst *ImpBackupService) GetLifeRegistration() *application.LifeRegistration

GetLifeRegistration ...

func (*ImpBackupService) Import

func (inst *ImpBackupService) Import(c context.Context, o *dto.Backup) (*dto.Backup, error)

Import ...

func (*ImpBackupService) ImportDumpData added in v0.1.1

func (inst *ImpBackupService) ImportDumpData(c context.Context, from, to util.Time) error

ImportDumpData ...

func (*ImpBackupService) ListAll

func (inst *ImpBackupService) ListAll(c context.Context) ([]*dto.Backup, error)

ListAll ...

type ImpBackupServiceDAO

type ImpBackupServiceDAO struct {
	markup.Component `id:"wpm-database-backup-dao" class:""`

	Agent dbagent.GormDBAgent `inject:"#GormDBAgent"`
}

ImpBackupServiceDAO ...

func (*ImpBackupServiceDAO) Export

func (inst *ImpBackupServiceDAO) Export(file afs.Path) error

Export ...

func (*ImpBackupServiceDAO) Import

func (inst *ImpBackupServiceDAO) Import(file afs.Path) error

Import ...

type WpmBackupController added in v0.1.0

type WpmBackupController struct {
	markup.Component `id:"" class:"rest-controller"`

	BackupService service.DatabaseBackupService `inject:"#DatabaseBackupService"`
	Responder     glass.MainResponder           `inject:"#glass-main-responder"`
}

WpmBackupController ...

func (*WpmBackupController) Init added in v0.1.0

Init 初始化

Jump to

Keyboard shortcuts

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