view

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsciiRender

type AsciiRender struct{}

func (AsciiRender) Ls

func (_ AsciiRender) Ls(ls []subject.Subject) string

func (AsciiRender) RssGroup

func (_ AsciiRender) RssGroup(rgs []CR.RssGroup) string

func (AsciiRender) Status

func (_ AsciiRender) Status(subj *subject.Subject, torrs ...qbt.Torrent) string

func (AsciiRender) TorrList

func (_ AsciiRender) TorrList(its []CR.Item) string

type JsonRender

type JsonRender struct {
	AsciiRender
}

func (JsonRender) Ls

func (_ JsonRender) Ls(ls []subject.Subject) string

func (JsonRender) RssGroup

func (_ JsonRender) RssGroup(rgs []CR.RssGroup) string

func (JsonRender) Status

func (jr JsonRender) Status(subj *subject.Subject, torrs ...qbt.Torrent) string

func (JsonRender) TorrList

func (_ JsonRender) TorrList(its []CR.Item) string

type Render

type Render interface {
	RssGroup(rgs []CR.RssGroup) string
	TorrList(its []CR.Item) string
	Ls(ls []subject.Subject) string
	Status(subj *subject.Subject, torrs ...qbt.Torrent) string
}

Jump to

Keyboard shortcuts

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