activity

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Rank        Rank              `json:"rank"`
	Stats       Stats             `json:"stats"`
	CanDownload string            `json:"canDownload"`
	History     []TorrentActivity `json:"history"`
}

func ParseResponse

func ParseResponse(doc *html.Node) *Info

type Rank

type Rank struct {
	Daily     string `json:"daily"`
	Weekly    string `json:"weekly"`
	Monthly   string `json:"monthly"`
	PrevMonth string `json:"prevMonth"`
}

type Stats

type Stats struct {
	Current     string `json:"current"`
	Allowed     string `json:"allowed"`
	PenMonths   string `json:"penMonths"`
	PenTorrents string `json:"penTorrents"`
}

type TorrentActivity

type TorrentActivity struct {
	Name      string `json:"name"`
	Start     string `json:"start"`
	Updated   string `json:"updated"`
	Status    string `json:"status"`
	Up        string `json:"up"`
	Down      string `json:"down"`
	Remaining string `json:"remaining"`
	Ratio     string `json:"ratio"`
}

Jump to

Keyboard shortcuts

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