initializer

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: 22 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) *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)

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