media

package
v0.0.0-...-6e69dc7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(link string) error

func Upload

func Upload(path string) error

Types

type ProgressReader

type ProgressReader struct {
	File       io.Reader
	TotalSize  int64
	Uploaded   int64
	ProgressFn func(current, total int64)
}

func (*ProgressReader) Read

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

type ProgressTracker

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

func NewProgressTracker

func NewProgressTracker() *ProgressTracker

func (*ProgressTracker) Callback

func (pt *ProgressTracker) Callback(current, total int64)

Jump to

Keyboard shortcuts

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