Versions in this module Expand all Collapse all v1 v1.3.4 Apr 22, 2026 v1.3.1 Feb 12, 2026 v1.3.0 Feb 12, 2026 v1.2.0 Feb 11, 2026 v1.1.0 Feb 7, 2026 Changes in this version + const ModLoaderAny + const ModLoaderCauldron + const ModLoaderFabric + const ModLoaderForge + const ModLoaderLiteLoader + const ModLoaderNeoForge + const ModLoaderQuilt + const RelationEmbeddedLibrary + const RelationInclude + const RelationIncompatible + const RelationOptionalDependency + const RelationRequiredDependency + const RelationTool + const ReleaseTypeAlpha + const ReleaseTypeBeta + const ReleaseTypeRelease + type APIResponse struct + Data T + type Author struct + ID int + Name string + URL string + type Category struct + ClassID int + DateModified time.Time + DisplayIndex int + GameID int + ID int + IconURL string + IsClass bool + Name string + ParentCategoryID int + Slug string + URL string + type Client struct + func NewClient(httpClient *http.Client, apiKey string) *Client + func (c *Client) GetCategories(ctx context.Context, gameID int) ([]Category, error) + func (c *Client) GetDownloadURL(ctx context.Context, modID, fileID int) (string, error) + func (c *Client) GetGame(ctx context.Context, gameID int) (*Game, error) + func (c *Client) GetGames(ctx context.Context) ([]Game, error) + func (c *Client) GetMod(ctx context.Context, modID int) (*Mod, error) + func (c *Client) GetModFile(ctx context.Context, modID, fileID int) (*File, error) + func (c *Client) GetModFiles(ctx context.Context, modID int) ([]File, error) + func (c *Client) GetMods(ctx context.Context, modIDs []int) ([]Mod, error) + func (c *Client) IsAuthenticated() bool + func (c *Client) SearchMods(ctx context.Context, gameID int, query string, categoryID int, ...) ([]Mod, *Pagination, error) + func (c *Client) SetAPIKey(key string) + type CurseForge struct + func New(httpClient *http.Client, apiKey string) *CurseForge + func (c *CurseForge) AuthURL() string + func (c *CurseForge) CheckUpdates(ctx context.Context, installed []domain.InstalledMod) ([]domain.Update, error) + func (c *CurseForge) ExchangeToken(ctx context.Context, code string) (*source.Token, error) + func (c *CurseForge) GetDependencies(ctx context.Context, mod *domain.Mod) ([]domain.ModReference, error) + func (c *CurseForge) GetDownloadURL(ctx context.Context, mod *domain.Mod, fileID string) (string, error) + func (c *CurseForge) GetMod(ctx context.Context, gameID, modID string) (*domain.Mod, error) + func (c *CurseForge) GetModFiles(ctx context.Context, mod *domain.Mod) ([]domain.DownloadableFile, error) + func (c *CurseForge) ID() string + func (c *CurseForge) IsAuthenticated() bool + func (c *CurseForge) Name() string + func (c *CurseForge) Search(ctx context.Context, query source.SearchQuery) ([]domain.Mod, error) + func (c *CurseForge) SetAPIKey(key string) + type File struct + AlternateFileID int + Dependencies []FileDependency + DisplayName string + DownloadCount int64 + DownloadURL string + FileDate time.Time + FileFingerprint int64 + FileLength int64 + FileName string + FileStatus int + GameID int + GameVersions []string + Hashes []FileHash + ID int + IsAvailable bool + IsServerPack bool + ModID int + Modules []FileModule + ReleaseType int + SortableGameVersions []SortableGameVersion + type FileDependency struct + ModID int + RelationType int + type FileHash struct + Algo int + Value string + type FileIndex struct + FileID int + Filename string + GameVersion string + GameVersionTypeID int + ModLoader int + ReleaseType int + type FileModule struct + Fingerprint int64 + Name string + type Game struct + APIStatus int + Assets GameAssets + DateModified time.Time + ID int + Name string + Slug string + Status int + type GameAssets struct + CoverURL string + IconURL string + TileURL string + type Mod struct + AllowModDistribution *bool + Authors []Author + Categories []Category + ClassID int + DateCreated time.Time + DateModified time.Time + DateReleased time.Time + DownloadCount int64 + GameID int + GamePopularityRank int + ID int + IsAvailable bool + IsFeatured bool + LatestFiles []File + LatestFilesIndexes []FileIndex + Links ModLinks + Logo *ModAsset + MainFileID int + Name string + PrimaryCategoryID int + Screenshots []ModAsset + Slug string + Status int + Summary string + ThumbsUpCount int + type ModAsset struct + Description string + ID int + ModID int + ThumbnailURL string + Title string + URL string + type ModLinks struct + IssuesURL string + SourceURL string + WebsiteURL string + WikiURL string + type PaginatedResponse struct + Data T + Pagination Pagination + type Pagination struct + Index int + PageSize int + ResultCount int + TotalCount int + type SortableGameVersion struct + GameVersion string + GameVersionName string + GameVersionPadded string + GameVersionReleaseDate time.Time + GameVersionTypeID int + type StringDownloadURL struct + Data string