Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Torrent ¶
type Torrent struct { InfoHash string `gorm:"varchar(32), not null"` Name string `gorm:"not null"` Downloaded int `gorm:"not null"` Seeders int64 `gorm:"not null"` Leechers int64 `gorm:"not null"` AddedBy string `gorm:"varchar(15)"` Description string `gorm:"varchar(512)"` DateAdded int64 // contains filtered or unexported fields }
Torrent houses the torrent schema information that we store in the DB.
type TrackerStats ¶
type WhiteTorrent ¶
type WhiteTorrent struct { InfoHash string `gorm:"varchar(32), not null"` Name string `gorm:"not null"` AddedBy string `gorm:"varchar(15)"` DateAdded int64 // contains filtered or unexported fields }
func (*WhiteTorrent) AddWhitelistedTorrent ¶
func (t *WhiteTorrent) AddWhitelistedTorrent(db *gorm.DB) bool
Click to show internal directories.
Click to hide internal directories.