view

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 9 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
}

type Stat added in v0.0.4

type Stat struct {
	File     string `json:"file"`
	Size     string `json:"size"`
	Progress string `json:"progress"`
}

type Subj added in v0.0.4

type Subj struct {
	Sid     int    `json:"sid"`
	Typ     string `json:"type"`
	Name    string `json:"name"`
	Episode string `json:"epi"`
	Status  string `json:"status"`
	Compl   string `json:"compl"`
}

type TorrItem added in v0.0.4

type TorrItem struct {
	Name       string `json:"name"`
	Size       string `json:"size"`
	UpdateTime string `json:"uptime"`
}

Jump to

Keyboard shortcuts

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