stats

package
v0.0.0-...-28f24a1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllStatsResponse

type AllStatsResponse struct {
	Index IndexItem        `json:"index"`
	Hot   []HotTorrentItem `json:"hot"`
}

func (AllStatsResponse) Paginate

func (s AllStatsResponse) Paginate(modelSlice interface{}) interface{}

func (AllStatsResponse) Serialize

func (s AllStatsResponse) Serialize(singleModel interface{}) interface{}

type HotTorrentItem

type HotTorrentItem struct {
	InfoHash      string `json:"info_hash"`
	SeederCount   uint64 `json:"seeder_count"`
	LeecherCount  uint64 `json:"leecher_count"`
	SnatcherCount uint64 `json:"snatcher_count"`
	MetaInfo      string `json:"meta_info"`
}

type IndexItem

type IndexItem struct {
	Torrent uint64 `json:"torrent"`
	Peer    uint64 `json:"peer"`
	Traffic uint64 `json:"traffic"`
}

Jump to

Keyboard shortcuts

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