console

package
v0.0.0-...-dcce029 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSessionStats

func FormatSessionStats(s *rpctypes.SessionStats, v io.Writer)

FormatSessionStats returns the human readable representation of session stats object.

func FormatStats

func FormatStats(stats *rpctypes.Stats, v io.Writer)

FormatStats returns the human readable representation of torrent stats object.

Types

type Console

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

Console is for drawing a text user interface for a remote Session.

func New

func New(clt *rainrpc.Client, columns []string) *Console

New returns a new Console object that uses a RPC client to get information from a torrent.Session.

func (*Console) Run

func (c *Console) Run() error

Run the UI loop.

type Torrent

type Torrent struct {
	rpctypes.Torrent
	Stats *rpctypes.Stats
}

Jump to

Keyboard shortcuts

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