Versions in this module Expand all Collapse all v1 v1.1.0 Jan 31, 2024 Changes in this version + const APIPublicCurseForge + var DefaultCurseForgeModpackClient = NewCurseForgeModpackClient(http.DefaultClient) + var DefaultPublicModpackClient = NewPublicModpackClient(http.DefaultClient) + var ErrMissingURL = errors.New("missing URL") + var ErrPathSanitization = errors.New("path rejected by sanitization") + type CurseForgeFile struct + File int64 + Project int64 + func (f *CurseForgeFile) DownloadURL(name string) string + type CurseForgeModpackClient struct + func NewCurseForgeModpackClient(client *http.Client) *CurseForgeModpackClient + func (c *CurseForgeModpackClient) GetModpackManifest(ctx context.Context, modpackID int64) (ModpackManifest, error) + func (c *CurseForgeModpackClient) GetModpackVersionManifest(ctx context.Context, modpackID, versionID int64) (ModpackVersionManifest, error) type ModpackClient + GetModpackManifest func(ctx context.Context, modpackID int64) (ModpackManifest, error) + GetModpackVersionManifest func(ctx context.Context, modpackID, versionID int64) (ModpackVersionManifest, error) type ModpackManifest + func GetCurseForgeModpackManifest(ctx context.Context, modpackID int64) (ModpackManifest, error) type ModpackVersionFile + CurseForge *CurseForgeFile type ModpackVersionManifest + func GetCurseForgeModpackVersionManifest(ctx context.Context, modpackID, versionID int64) (ModpackVersionManifest, error) + type PublicModpackClient struct + func NewPublicModpackClient(client *http.Client) *PublicModpackClient + func (c *PublicModpackClient) GetModpackManifest(ctx context.Context, modpackID int64) (ModpackManifest, error) + func (c *PublicModpackClient) GetModpackVersionManifest(ctx context.Context, modpackID, versionID int64) (ModpackVersionManifest, error) v1.0.3 Nov 23, 2023 v1.0.2 Nov 21, 2023 v1.0.1 Nov 20, 2023 v1.0.0 Nov 18, 2023 Changes in this version + const APIBaseURL + const APIPublicModpack + const APIUserAgent + type FileBase struct + ID int64 + Mirrors []string + SHA1 string + Size int64 + Type string + URL string + Updated Time + type ModpackArt struct + Compressed bool + Height int + ID int64 + Mirrors []string + SHA1 string + Size int64 + Type string + URL string + Updated Time + Width int + type ModpackAuthor struct + Website string + type ModpackClient struct + func NewModpackClient(client *http.Client) *ModpackClient + func (c *ModpackClient) GetPublicModpackManifest(ctx context.Context, modpackID int64) (ModpackManifest, error) + func (c *ModpackClient) GetPublicModpackVersionManifest(ctx context.Context, modpackID, versionID int64) (ModpackVersionManifest, error) + type ModpackLink struct + ID int64 + Link string + Name string + Type string + type ModpackManifest struct + Art []ModpackArt + Authors []ModpackAuthor + Description string + Featured bool + Installs int64 + Links []ModpackLink + Notification string + Plays int64 + Plays14D int64 + Private bool + Provider string + Rating ModpackRating + Refreshed Time + Released Time + Status string + Synopsis string + Tags []ModpackTag + Versions []ModpackVersion + func GetPublicModpackManifest(ctx context.Context, modpackID int64) (ModpackManifest, error) + func (m *ModpackManifest) LatestVersion() (ModpackVersion, bool) + type ModpackRating struct + Age int + Alcoholdrugs bool + Configured bool + Frightening bool + Gambling bool + ID int64 + Language bool + Nuditysexual bool + Sterotypeshate bool + Verified bool + Violence bool + type ModpackTag struct + ID int64 + Name string + type ModpackVersion struct + Private bool + Specs ModpackVersionSpecs + Targets []ModpackVersionTarget + type ModpackVersionFile struct + ClientOnly bool + Mirrors []string + Optional bool + Path string + SHA1 string + ServerOnly bool + Size int64 + URL string + Version string + func (f *ModpackVersionFile) PrecheckJob(migrateFromPath, clientPath, serverPath string, preserveMigrationSource bool) (precheck.Job, bool, error) + type ModpackVersionManifest struct + Changelog string + Files []ModpackVersionFile + Installs int64 + Notification string + Parent int64 + Plays int64 + Private bool + Refreshed Time + Specs ModpackVersionSpecs + Status string + Targets []ModpackVersionTarget + func GetPublicModpackVersionManifest(ctx context.Context, modpackID, versionID int64) (ModpackVersionManifest, error) + type ModpackVersionSpecs struct + ID int64 + Minimum int + Recommended int + type ModpackVersionTarget struct + Version string + type ResourceBase struct + ID int64 + Name string + Type string + Updated Time + type Time time.Time + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error)