backup

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backuper added in v0.8.0

type Backuper struct {
	// contains filtered or unexported fields
}

func New added in v0.8.0

func New(config *BackuperConfig) *Backuper

func (*Backuper) CreateBackup added in v0.8.0

func (b *Backuper) CreateBackup(ctx context.Context) error

func (*Backuper) Start added in v0.8.0

func (b *Backuper) Start(ctx context.Context) error

Start starts the backup component, which is periodically taking backups of the database

type BackuperConfig added in v0.8.0

type BackuperConfig struct {
	Log            *slog.Logger
	BackupSchedule string
	DatabaseProber database.DatabaseProber
	BackupProvider backuproviders.BackupProvider
	Metrics        *metrics.Metrics
	Compressor     *compress.Compressor
}

Directories

Path Synopsis
gcp
s3

Jump to

Keyboard shortcuts

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