torrentService

package
v0.0.0-...-5607d3c Latest Latest
Warning

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

Go to latest
Published: May 13, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTorrent

func DeleteTorrent(id string) (int, error)

func GetAllTorrents

func GetAllTorrents(limit int, offset int) ([]model.Torrent, int, error)

func GetAllTorrentsDB

func GetAllTorrentsDB() ([]model.Torrent, int, error)

func GetAllTorrentsOrderBy

func GetAllTorrentsOrderBy(orderBy string, limit int, offset int) ([]model.Torrent, int, error)

func GetFeeds

func GetFeeds() (result []model.Feed, err error)

don't need raw SQL once we get MySQL

func GetTorrentById

func GetTorrentById(id string) (torrent model.Torrent, err error)

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

func GetTorrentsDB(parameters serviceBase.WhereParams) ([]model.Torrent, int, error)

Get Torrents with where parameters but no limit and order by default (get all the torrents corresponding in the db)

func GetTorrentsOrderBy

func GetTorrentsOrderBy(parameters *serviceBase.WhereParams, orderBy string, limit int, offset int) (torrents []model.Torrent, count int, err error)

func GetTorrentsOrderByNoCount

func GetTorrentsOrderByNoCount(parameters *serviceBase.WhereParams, orderBy string, limit int, offset int) (torrents []model.Torrent, err error)

func UpdateTorrent

func UpdateTorrent(torrent model.Torrent) (int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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