Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Author ¶
type Author struct {
SteamID uint64 `json:"steam_id"`
SteamName string `json:"steam_name"`
Mods []ModInfo `json:"mods"`
Total uint32 `json:"total"`
TotalDownloads uint64 `json:"total_downloads"`
TotalFavorites uint64 `json:"total_favorites"`
TotalViews uint64 `json:"total_views"`
}
func GetAuthorInfo ¶
type ModInfo ¶
type ModInfo struct {
DisplayName string `json:"display_name"`
InternalName string `json:"internal_name"`
ModID string `json:"mod_id"`
Author string `json:"author"`
AuthorID string `json:"author_id"`
ModSide string `json:"modside"`
Homepage string `json:"homepage"`
Versions []ModVersionData `json:"versions"`
ModReferences string `json:"mod_references"`
NumVersions uint32 `json:"num_versions"`
Tags []ModTag `json:"tags"`
TimeCreated uint64 `json:"time_created"`
TimeUpdated uint64 `json:"time_updated"`
IconUrl string `json:"workshop_icon_url"`
DownloadsTotal uint32 `json:"downloads_total"`
Favorited uint32 `json:"favorited"`
Followers uint32 `json:"followers"`
Views uint64 `json:"views"`
VoteData *ModVoteData `json:"vote_data"`
Playtime string `json:"playtime"`
DisplayNameHTML template.HTML // added later
Description string `json:"description"`
EscapedDescription template.HTML // added later
Children []ModChild `json:"children"`
}
ModInfo holds mod info that is fetched from tmlapis.tomat.dev/1.4/mod
func GetModList ¶
func GetModList() []ModInfo
type ModVersionData ¶
type ModVoteData ¶
Click to show internal directories.
Click to hide internal directories.