stats

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stats retrieves download, upload, peers, and progress stats for torrents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(t *torrent.Torrent, showPercent bool) string

Download retrieves the download information for a torrent and returns it as a string.

func Peers

func Peers(t *torrent.Torrent) string

Peers retrieves the peer information for a torrent and returns it as a string.

func ProgressBar

func ProgressBar(t *torrent.Torrent, width *int, theme *styles.ColorTheme) string

ProgressBar retrieves the download information and renders it as a Bubbles progress bar.

func Upload

func Upload(t *torrent.Torrent) string

Upload retrieves the amount of data seeded for a torrent and returns it as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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