periodicbackup

package
v2.5.1-mercury-20230912 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupConfig added in v2.3.0

type BackupConfig interface {
	URL() *url.URL
	Dir() string
	Mode() config.DatabaseBackupMode
	Frequency() time.Duration
}

type DatabaseBackup

type DatabaseBackup interface {
	services.ServiceCtx
	RunBackup(version string) error
}

func NewDatabaseBackup

func NewDatabaseBackup(dbUrl url.URL, rootDir string, backupConfig BackupConfig, lggr logger.Logger) (DatabaseBackup, error)

NewDatabaseBackup instantiates a *databaseBackup

Jump to

Keyboard shortcuts

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