console

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 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) *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.

Jump to

Keyboard shortcuts

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