progress

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

internal/progress/progress.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter interface {
	// Start initializes progress tracking with total bytes and file count
	Start(totalBytes int64, fileCount int)

	// FileStart marks the beginning of a file download/upload
	FileStart(name string, size int64)

	// FileProgress updates progress for the current file
	FileProgress(name string, written int64, size int64)

	// FileDone marks completion of the current file
	FileDone(name string)

	// Message logs an informational message
	Message(msg string)

	// Close cleans up resources
	Close()
}

Reporter tracks and reports progress for long-running operations

func New

func New(logger *log.Logger, format string) Reporter

New creates a progress reporter based on output format

Jump to

Keyboard shortcuts

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