console

package
v1.12.15 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSessionStats added in v0.16.0

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

FormatSessionStats returns the human readable representation of session stats object.

func FormatStats added in v0.16.0

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 added in v1.3.0

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

Torrent in the ssession.

Jump to

Keyboard shortcuts

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