Package-level declarations

Types

Link copied to clipboard
class CodebergUpstream(val user: String, val repo: String, val baseUrl: String? = "https://codeberg.org/api/v1/", val baseUrlEndpoint: String? = "repos/", val releaseBaseUrl: String? = "https://codeberg.org/", val releaseBaseUrlEndpoint: String? = "/", val upstreamPriority: Priority = 1.priority) : Upstream

The Codeberg upstream.

Link copied to clipboard
data class GitHubUpstream(val user: String, val repo: String, val baseUrl: String? = "https://api.github.com/", val baseUrlEndpoint: String? = "repos/", val releaseBaseUrl: String? = "https://github.com/", val releaseBaseUrlEndpoint: String? = "/", val upstreamPriority: Priority = 0.priority) : Upstream

The GitHub upstream.

Link copied to clipboard
data class HangarUpstream(val projectId: String, val baseUrl: String? = "https://hangar.papermc.io/api/v1/", val baseUrlEndpoint: String? = "/latest?channel={classifier}", val releaseBaseUrl: String? = "https://hangar.papermc.io/", val releaseBaseUrlEndpoint: String? = "/versions/{version}", val upstreamPriority: Priority = 0.priority) : Upstream

The Hangar upstream.

Link copied to clipboard
data class ModrinthUpstream(val projectId: String, val modrinthProjectType: ModrinthProjectType, val baseUrl: String? = "https://api.modrinth.com/v2/", val baseUrlEndpoint: String? = "project/", val releaseBaseUrl: String? = "https://modrinth.com/", val releaseBaseUrlEndpoint: String? = "/", val upstreamPriority: Priority = 0.priority) : Upstream

The Modrinth upstream.

Link copied to clipboard
data class SpigotUpstream(val projectId: String, val baseUrl: String? = "https://api.spigotmc.org/legacy/", val baseUrlEndpoint: String? = "update.php?resource=", val releaseBaseUrl: String? = "https://www.spigotmc.org/", val releaseBaseUrlEndpoint: String? = "resources/", val upstreamPriority: Priority = 0.priority) : Upstream

The Spigot upstream.

Link copied to clipboard

The Upstream interface defines a remote that stores version information (and possible version files) that allows the fetching of this information through an api.