progress

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

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

Spinner advances frames on a fixed timer and triggers a render callback.

func NewSpinner

func NewSpinner(interval time.Duration, render func()) *Spinner

func (*Spinner) Frame

func (s *Spinner) Frame() rune

func (*Spinner) Stop

func (s *Spinner) Stop()

type Tracker

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

Tracker manages OCR progress rendering in TTY and non-TTY modes.

func New

func New(out io.Writer, isTTY bool, total, concurrency int) *Tracker

func (*Tracker) Finish

func (t *Tracker) Finish()

func (*Tracker) Skip

func (t *Tracker) Skip(filename string)

func (*Tracker) WorkerDone

func (t *Tracker) WorkerDone(slotID int)

func (*Tracker) WorkerError

func (t *Tracker) WorkerError(slotID int, err error)

func (*Tracker) WorkerStart

func (t *Tracker) WorkerStart(slotID int, filename string)

Jump to

Keyboard shortcuts

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