Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilesToList ¶
func HashDefault ¶
func HashDefault(r *Release)
func HashFileList ¶
func HashReducedList ¶
func RoundBytes ¶
Types ¶
type File ¶
func ParseFileList ¶
type InfoRelease ¶
type InfoRelease struct { TorrentId int `yaml:"torrent_id"` Format string `yaml:"format"` FilePath string `yaml:"file_path"` Name string `yaml:"name"` Year int `yaml:"year"` RecordLabel string `yaml:"record_label"` CatalogueNumber string `yaml:"catalogue_number"` Edition string `yaml:"edition"` Composers []string `yaml:"composers,omitempty,flow"` Artists []string `yaml:"artists"` With []string `yaml:"with,omitempty,flow"` DJ []string `yaml:"dj,omitempty,flow"` RemixedBy []string `yaml:"remixed_by,omitempty,flow"` Producer []string `yaml:"producer,omitempty,flow"` Tags []string `yaml:"tags,flow"` Description string `yaml:"description,omitempty"` Image string `yaml:"image,omitempty"` }
func (InfoRelease) String ¶
func (i InfoRelease) String() string
type Release ¶
type Release struct { Id int64 `json:"-"` Source string `json:"source"` SourceId int64 `json:"source_id" gorm:"index"` HashType string `json:"hash_type"` Hash string `json:"hash" gorm:"index"` FileList []File `json:"fileList,omitempty" sql:"-"` FilePath string `json:"filePath" gorm:"type:text"` Time string `json:"time"` }
Click to show internal directories.
Click to hide internal directories.