{"modulePath":"github.com/devking41/torrserver","version":"v0.0.0-20190517083702-22766dc7b107","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Functions\n\n```go\nfunc HTTPErrorHandler(err error, c echo.Context)\n```\n\n```go\nfunc Start(port string)\n```\n\n```go\nfunc Stop()\n```\n\n```go\nfunc Wait() error\n```\n\n## Types\n\n```go\ntype FileStat struct {\n\tId     int\n\tPath   string\n\tLength int64\n}\n```\n\n```go\ntype TorFile struct {\n\tName    string\n\tLink    string\n\tPreload string\n\tSize    int64\n\tViewed  bool\n}\n```\n\n```go\ntype TorrentJsonRequest struct {\n\tLink     string `json:\",omitempty\"`\n\tHash     string `json:\",omitempty\"`\n\tTitle    string `json:\",omitempty\"`\n\tInfo     string `json:\",omitempty\"`\n\tDontSave bool   `json:\",omitempty\"`\n}\n```\n\n```go\ntype TorrentJsonResponse struct {\n\tName     string\n\tMagnet   string\n\tHash     string\n\tAddTime  int64\n\tLength   int64\n\tStatus   torr.TorrentStatus\n\tPlaylist string\n\tInfo     string\n\tFiles    []TorFile `json:\",omitempty\"`\n}\n```\n\n```go\ntype TorrentStat struct {\n\tName string\n\tHash string\n\n\tTorrentStatus       int\n\tTorrentStatusString string\n\n\tLoadedSize  int64\n\tTorrentSize int64\n\n\tPreloadedBytes int64\n\tPreloadSize    int64\n\n\tDownloadSpeed float64\n\tUploadSpeed   float64\n\n\tTotalPeers       int\n\tPendingPeers     int\n\tActivePeers      int\n\tConnectedSeeders int\n\n\tFileStats []FileStat\n}\n```\n\n","path":"github.com/devking41/torrserver/src/server/web","name":"server","synopsis":"","isRedistributable":true}
