initializer

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

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

func New

func New(log *slog.Logger, addr string, db database.Database, bp providers.BackupProvider, comp *compress.Compressor, metrics *metrics.Metrics, dbDataDir string, encrypter *encryption.Encrypter) *Initializer

func (*Initializer) Restore

func (i *Initializer) Restore(ctx context.Context, version *providers.BackupVersion) error

Restore restores the database with the given backup version

func (*Initializer) Start

func (i *Initializer) Start(ctx context.Context, backuper *backup.Backuper) error

Start starts the initializer, which includes a server component and the initializer itself, which is potentially restoring a backup

Jump to

Keyboard shortcuts

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