stream

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package stream provides utilities for tracking download and streaming progress.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressReader

type ProgressReader struct {
	Reader     io.Reader
	Total      int64
	OnProgress func(downloaded, total int64)
	// contains filtered or unexported fields
}

ProgressReader tracks read progress from a source reader.

func (*ProgressReader) Read

func (pr *ProgressReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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