estimates

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBackupEstimate

func PrintBackupEstimate(
	ctx context.Context,
	stats *models.BackupStats,
	getMetrics func() *models.Metrics,
	logger *slog.Logger,
)

PrintBackupEstimate prints the backup progress. The progress is printed every second. The progress is printed only when the total records is greater than 0. The progress is printed only when the read records is greater than 0.

func PrintFilesNumber

func PrintFilesNumber(
	ctx context.Context,
	getNumber func() int64,
	logger *slog.Logger,
)

PrintFilesNumber prints the number of files.

func PrintRestoreEstimate

func PrintRestoreEstimate(
	ctx context.Context,
	stats *models.RestoreStats,
	getMetrics func() *models.Metrics,
	getSize func() int64,
	logger *slog.Logger,
)

PrintRestoreEstimate prints the restore progress. The progress is printed every second. The progress is printed only when the total file size is greater than 0. The progress is printed only when the written number of bytes is greater than 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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