log

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProgressLogManager

func NewProgressLogManager(ctx context.Context) progress.Tracker

NewProgressLogManager creates NewProgressLogManager object.

Types

type ProgressLogManager

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

ProgressLogManager type is implementation of progress.Tracker that using logger.

func (*ProgressLogManager) AddTask

func (p *ProgressLogManager) AddTask(name, title string, total uint64)

AddTask adds task to manager.

func (*ProgressLogManager) UpdateProgress

func (p *ProgressLogManager) UpdateProgress(name string, progress usecase.Progress)

UpdateProgress updates progress for task with passed name.

func (*ProgressLogManager) Wait

func (p *ProgressLogManager) Wait()

Wait waits for all tasks to complete.

Jump to

Keyboard shortcuts

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