Versions in this module Expand all Collapse all v1 v1.0.1 Jul 22, 2017 Changes in this version + const APlus + const FilterRemakes + const ShowAll + const Trusted + func ParseLanguages(s string) publicSettings.Languages + type Categories []*Category + type Category struct + Main uint8 + Sub uint8 + func ParseCategories(s string) []*Category + func (c Category) IsMainSet() bool + func (c Category) IsSet() bool + func (c Category) IsSubSet() bool + func (c Category) String() (s string) + type DateFilter string + func (d *DateFilter) Parse(s string, dateType string) bool + type SizeBytes uint64 + func (sz *SizeBytes) Parse(s string, sizeType string) bool + type SortMode uint8 + const Completed + const Date + const Downloads + const ID + const Leechers + const Name + const Seeders + const Size + func (s *SortMode) Parse(str string) + func (s *SortMode) ToDBField() string + func (s *SortMode) ToESField() string + type Status uint8 + func (st *Status) Parse(s string) + func (st *Status) ToString() string + type TorrentCache struct + Count int + Torrents []models.Torrent + type TorrentParam struct + Category Categories + Deleted bool + FromDate DateFilter + FromID uint32 + Full bool + Hidden bool + Languages publicSettings.Languages + Max uint32 + MaxSize SizeBytes + MinSize SizeBytes + NameLike string + NotNull string + Offset uint32 + Order bool + Sort SortMode + Status Status + ToDate DateFilter + TorrentID uint32 + UserID uint32 + func (p *TorrentParam) Clone() TorrentParam + func (p *TorrentParam) Find(client *elastic.Client) (int64, []models.Torrent, error) + func (p *TorrentParam) FromRequest(c *gin.Context) + func (p *TorrentParam) Identifier() string + func (p *TorrentParam) ToFilterQuery() string + type WhereParams struct + Conditions string + Params []interface{} + func CreateWhereParams(conditions string, params ...interface{}) WhereParams