Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) GetLatestVersionFromHash(hashAlgorithm modrinth.HashAlgorithm, hash string, ...) (modrinth.Version, error)
- func (c *Client) GetModFileFromVersionFile(versionFile modrinth.VersionFile) (ModFile io.ReadCloser, err error)
- func (c *Client) ListProjectsVersions(idORslug string, loaders []string, game_versions []string) ([]modrinth.Version, error)
- func (c *Client) SearchProjects(query string, facets []modrinth.Facet, index modrinth.Index, offset int, ...) (modrinth.SearchResult, error)
Constants ¶
View Source
const (
ModrinthBaseUrl = "https://api.modrinth.com/v2/"
)
Variables ¶
View Source
var Logger = log.Default()
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseUrl string Ratelimit_limit int Ratelimit_remaining int Ratelimit_reset int }
func NewModrinthClient ¶
func NewModrinthClient() *Client
func (*Client) GetLatestVersionFromHash ¶
func (c *Client) GetLatestVersionFromHash(hashAlgorithm modrinth.HashAlgorithm, hash string, getLatestVersionFromHashBody modrinth.GetLatestVersionFromHashBody) (modrinth.Version, error)
func (*Client) GetModFileFromVersionFile ¶
func (c *Client) GetModFileFromVersionFile(versionFile modrinth.VersionFile) (ModFile io.ReadCloser, err error)
func (*Client) ListProjectsVersions ¶
Click to show internal directories.
Click to hide internal directories.