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 ¶
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.
Click to show internal directories.
Click to hide internal directories.