Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInternalName ¶
Types ¶
type Author ¶
type Author struct {
SteamName string `json:"steam_name"`
DownloadsTotal int `json:"downloads_total"`
DownloadsYesterday int `json:"downloads_yesterday"`
Mods []AuthorModInfo `json:"mods"`
MaintainedMods []AuthorMaintainedModInfo `json:"maintained_mods"`
}
func GetAuthorInfo ¶
type AuthorMaintainedModInfo ¶
type AuthorModInfo ¶
type ModInfo ¶
type ModInfo struct {
DisplayName string `json:"display_name"`
Rank int `json:"rank"`
InternalName string `json:"internal_name"`
Author string `json:"author"`
Homepage string `json:"homepage"`
Description string `json:"description"`
Icon string `json:"icon"`
Version string `json:"version"`
TModLoaderVersion string `json:"tmodloader_version"`
LastUpdated string `json:"last_updated"`
ModDependencies string `json:"modreferences"`
ModSide string `json:"modside"`
DownloadLink string `json:"download_link"`
DownloadsTotal int `json:"downloads_total"`
DownloadsToday int `json:"downloads_today"`
DownloadsYesterday int `json:"downloads_yesterday"`
}
ModInfo holds mod info that is fetched from tmlapis.tomat.dev/1.3/mod
type ModListItem ¶
type ModListItem struct {
DisplayName string `json:"display_name"`
InternalName string `json:"internal_name"`
DisplayNameHTML template.HTML // added later
Rank int `json:"rank"`
DownloadsTotal int `json:"downloads_total"`
DownloadsToday int `json:"downloads_today"`
DownloadsYesterday int `json:"downloads_yesterday"`
TModLoaderVersion string `json:"tmodloader_version"`
}
ModListItem holds a single item when fetching the whole modList
func GetModList ¶
func GetModList() []ModListItem
type ModVersion ¶
type ModVersion struct {
Version string `json:"version"`
DownloadsTotal int `json:"downloads_total"`
TModLoaderVersion string `json:"tmodloader_version"`
PublishDate string `json:"publish_date"`
}
func GetModVersionHistory ¶
func GetModVersionHistory(modName string) ([]ModVersion, error)
requires a internal modName
Click to show internal directories.
Click to hide internal directories.