Documentation ¶
Index ¶
- func CreateReleaseNote(releases []*Release) (string, error)
- func ModDir(mod *ModInfo, domain string) string
- type Condition
- type DownloadLink
- type DownloadLinkApiResponse
- type File
- type FileUpdate
- type FilesApiResponse
- type LocalFile
- type ModInfo
- type ModInfoSet
- type Release
- type TsCondition
- type Version
- type VersionPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateReleaseNote ¶
Types ¶
type DownloadLink ¶
type DownloadLinkApiResponse ¶
type DownloadLinkApiResponse []DownloadLink
type File ¶
type File struct { ID []int `json:"id"` UID int `json:"uid"` FileID int `json:"file_id"` Name string `json:"name"` Version string `json:"version"` CategoryID int `json:"category_id"` CategoryName string `json:"category_name"` IsPrimary bool `json:"is_primary"` Size int `json:"size"` FileName string `json:"file_name"` UploadedTimestamp int `json:"uploaded_timestamp"` UploadedTime time.Time `json:"uploaded_time"` ModVersion string `json:"mod_version"` ExternalVirusScanUrl string `json:"external_virus_scan_url"` Description string `json:"description"` SizeKB int `json:"size_kb"` SizeInBytes int `json:"size_in_bytes"` ChangelogHTML string `json:"changelog_html"` ContentPreviewLink string `json:"content_preview_link"` }
func (*File) CmpTimestamp ¶
func (p *File) CmpTimestamp(ts int) TsCondition
type FileUpdate ¶
type FilesApiResponse ¶
type FilesApiResponse struct { Files []File FileUpdates []FileUpdate }
type ModInfo ¶
type ModInfo struct { ID int `yaml:"id"` Name string `yaml:"name"` Filter string `yaml:"filter,omitempty"` Author string `yaml:"author"` File struct { FileID int `yaml:"fileId"` FileName string `yaml:"fileName"` Name string `yaml:"name"` SizeInBytes int `yaml:"sizeInBytes"` Timestamp int `yaml:"timestamp"` Version string `yaml:"version"` } UUID uuid.UUID `yaml:"uuid"` }
type ModInfoSet ¶
func (*ModInfoSet) Export ¶
func (p *ModInfoSet) Export(filePath string) error
func (*ModInfoSet) Setup ¶
func (p *ModInfoSet) Setup(f string) error
func (*ModInfoSet) Update ¶
func (p *ModInfoSet) Update(release *Release) bool
type TsCondition ¶
type TsCondition int
const ( SameTimestamp TsCondition = iota NewerTimestamp OlderTimestamp )
type VersionPair ¶
Click to show internal directories.
Click to hide internal directories.