backups

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

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

Controller ...

func (*Controller) Init

func (inst *Controller) Init(ec glass.EngineConnection) error

Init 初始化

type ImpBackupService

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

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

ImpBackupService ...

func (*ImpBackupService) Export

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

Export ...

func (*ImpBackupService) Import

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

Import ...

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 ...

Jump to

Keyboard shortcuts

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