Documentation
¶
Index ¶
- type DownloadResponse
- type FolderResponse
- type FoldersResponse
- type Seedr
- func (s *Seedr) Download(u string) (*DownloadResponse, error)
- func (s *Seedr) FinalURL(endpoint string) (string, error)
- func (s *Seedr) Folder(id int) (*FolderResponse, error)
- func (s *Seedr) Folders() (*FoldersResponse, error)
- func (s *Seedr) Get(endpoint string, v interface{}) error
- func (s *Seedr) HLS(id int) (string, error)
- func (s *Seedr) Post(endpoint string, values *url.Values, v interface{}) error
- func (s *Seedr) SetHTTPClient(httpClient *http.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadResponse ¶
type FolderResponse ¶
type FolderResponse struct { SpaceMax int64 `json:"space_max"` SpaceUsed int64 `json:"space_used"` Code int `json:"code"` Timestamp string `json:"timestamp"` ID int `json:"id"` Name string `json:"name"` ParentID int `json:"parent_id"` Torrents []interface{} `json:"torrents"` Folders []interface{} `json:"folders"` Files []struct { ID int `json:"id"` Name string `json:"name"` Size int `json:"size"` Hash string `json:"hash"` LastUpdate string `json:"last_update"` StreamAudio bool `json:"stream_audio"` StreamVideo bool `json:"stream_video"` VideoConverted string `json:"video_converted,omitempty"` } `json:"files"` Result bool `json:"result"` }
type FoldersResponse ¶
type FoldersResponse struct { SpaceMax int64 `json:"space_max"` SpaceUsed int64 `json:"space_used"` Code int `json:"code"` Timestamp string `json:"timestamp"` ID int `json:"id"` Name string `json:"name"` ParentID int `json:"parent_id"` Torrents []interface{} `json:"torrents"` Folders []struct { ID int `json:"id"` Name string `json:"name"` Size int64 `json:"size"` LastUpdate string `json:"last_update"` } `json:"folders"` Files []interface{} `json:"files"` Result bool `json:"result"` }
type Seedr ¶
type Seedr struct {
// contains filtered or unexported fields
}
func (*Seedr) Folders ¶
func (s *Seedr) Folders() (*FoldersResponse, error)
func (*Seedr) SetHTTPClient ¶
Click to show internal directories.
Click to hide internal directories.