Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashRequest ¶
HashRequest represents the request structure for the Modrinth API hash lookup
type HashResponse ¶
HashResponse represents a single item in the hash lookup response
type ModInfo ¶ added in v0.1.2
type ModInfo struct {
ProjectID string
VersionID string
ProjectName string
FileName string
Side string
}
ModInfo represents information about a mod
type ModSources ¶ added in v0.1.2
ModSources represents mod counts by source
type ModrinthIndexFile ¶
type ModrinthIndexFile struct {
FormatVersion int `json:"formatVersion"`
Game string `json:"game"`
VersionID string `json:"versionId"`
Name string `json:"name"`
Summary string `json:"summary,omitempty"`
Files []ModrinthIndexFileRef `json:"files"`
Dependencies map[string]string `json:"dependencies"`
}
ModrinthIndexFile represents the structure of modrinth.index.json in .mrpack files
type ModrinthIndexFileRef ¶
type ModrinthIndexFileRef struct {
Path string `json:"path"`
Hashes map[string]string `json:"hashes"`
Env *FileEnv `json:"env,omitempty"`
Downloads []string `json:"downloads"`
FileSize int `json:"fileSize"`
}
ModrinthIndexFileRef represents a file reference in the modrinth index
Click to show internal directories.
Click to hide internal directories.