progress

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package progress carries ephemeral observations, never operation authority.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Report

func Report(ctx context.Context, event Event)

func Stage

func Stage(ctx context.Context, stage string)

func WithObserver

func WithObserver(ctx context.Context, observer Observer) context.Context

Types

type Event

type Event struct {
	Stage     string
	Completed int64
	Total     int64 // Zero means unknown; never synthesize a percentage.
}

type Observer

type Observer func(Event)

Jump to

Keyboard shortcuts

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