server

package
v0.0.0-...-22766dc Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPErrorHandler

func HTTPErrorHandler(err error, c echo.Context)

func Start

func Start(port string)

func Stop

func Stop()

func Wait

func Wait() error

Types

type FileStat

type FileStat struct {
	Id     int
	Path   string
	Length int64
}

type TorFile

type TorFile struct {
	Name    string
	Link    string
	Preload string
	Size    int64
	Viewed  bool
}

type TorrentJsonRequest

type TorrentJsonRequest struct {
	Link     string `json:",omitempty"`
	Hash     string `json:",omitempty"`
	Title    string `json:",omitempty"`
	Info     string `json:",omitempty"`
	DontSave bool   `json:",omitempty"`
}

type TorrentJsonResponse

type TorrentJsonResponse struct {
	Name     string
	Magnet   string
	Hash     string
	AddTime  int64
	Length   int64
	Status   torr.TorrentStatus
	Playlist string
	Info     string
	Files    []TorFile `json:",omitempty"`
}

type TorrentStat

type TorrentStat struct {
	Name string
	Hash string

	TorrentStatus       int
	TorrentStatusString string

	LoadedSize  int64
	TorrentSize int64

	PreloadedBytes int64
	PreloadSize    int64

	DownloadSpeed float64
	UploadSpeed   float64

	TotalPeers       int
	PendingPeers     int
	ActivePeers      int
	ConnectedSeeders int

	FileStats []FileStat
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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