Documentation
¶
Index ¶
- func DeleteTorrent(id string) (int, error)
- func GetAllTorrents(limit int, offset int) ([]model.Torrent, int, error)
- func GetAllTorrentsDB() ([]model.Torrent, int, error)
- func GetAllTorrentsOrderBy(orderBy string, limit int, offset int) ([]model.Torrent, int, error)
- func GetFeeds() (result []model.Feed, err error)
- func GetTorrentById(id string) (torrent model.Torrent, err error)
- func GetTorrents(parameters serviceBase.WhereParams, limit int, offset int) ([]model.Torrent, int, error)
- func GetTorrentsDB(parameters serviceBase.WhereParams) ([]model.Torrent, int, error)
- func GetTorrentsOrderBy(parameters *serviceBase.WhereParams, orderBy string, limit int, offset int) (torrents []model.Torrent, count int, err error)
- func GetTorrentsOrderByNoCount(parameters *serviceBase.WhereParams, orderBy string, limit int, offset int) (torrents []model.Torrent, err error)
- func UpdateTorrent(torrent model.Torrent) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTorrent ¶
func GetAllTorrentsOrderBy ¶
func GetTorrents ¶
func GetTorrents(parameters serviceBase.WhereParams, limit int, offset int) ([]model.Torrent, int, error)
GetTorrents obtain a list of torrents matching 'parameters' from the database. The list will be of length 'limit' and in default order. GetTorrents returns the first records found. Later records may be retrieved by providing a positive 'offset'
func GetTorrentsDB ¶
Get Torrents with where parameters but no limit and order by default (get all the torrents corresponding in the db)
func GetTorrentsOrderBy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.