Documentation ¶
Index ¶
- func ExtractBasicValue(c *gin.Context, r *torrentValidator.TorrentRequest) error
- func ExtractEditInfo(c *gin.Context, r *torrentValidator.TorrentRequest) error
- func ExtractInfo(c *gin.Context, r *torrentValidator.TorrentRequest) error
- func NewTorrentRequest(params ...string) *torrentValidator.TorrentRequest
- func UpdateTorrent(r *torrentValidator.UpdateRequest, t *models.Torrent, currentUser *models.User) *models.Torrent
- func UpdateUnscopeTorrent(r *torrentValidator.UpdateRequest, t *models.Torrent, currentUser *models.User) *models.Torrent
- type APIResultJSON
- type TorrentsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBasicValue ¶
ExtractBasicValue : takes an http request and computes all basic fields for this form
func ExtractEditInfo ¶
ExtractEditInfo : takes an http request and computes all fields for this form
func ExtractInfo ¶
ExtractInfo : takes an http request and computes all fields for this form
func NewTorrentRequest ¶
func NewTorrentRequest(params ...string) *torrentValidator.TorrentRequest
NewTorrentRequest : creates a new torrent request struc with some default value
Types ¶
type APIResultJSON ¶
type APIResultJSON struct { Torrents []models.TorrentJSON `json:"torrents"` QueryRecordCount int `json:"queryRecordCount"` TotalRecordCount int `json:"totalRecordCount"` }
APIResultJSON for torrents in json for api
type TorrentsRequest ¶
type TorrentsRequest struct { Query torrentsQuery `json:"search"` Page int `json:"page"` MaxPerPage int `json:"limit"` }
TorrentsRequest struct
func (*TorrentsRequest) ToParams ¶
func (r *TorrentsRequest) ToParams() structs.WhereParams
ToParams : Convert a torrentsrequest to searchparams
Click to show internal directories.
Click to hide internal directories.