server

package
v0.0.0-...-db95cbe Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: GPL-3.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPErrorHandler

func HTTPErrorHandler(err error, c echo.Context)

func ServerHeaderSet

func ServerHeaderSet(next echo.HandlerFunc) echo.HandlerFunc

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
	Play    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