Hangar Upstream
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.
Properties
Link copied to clipboard
The endpoint from where the data is requested [baseUrl+baseUrlEndpoint]
Link copied to clipboard
The url that is used as a base for all releases
Link copied to clipboard
The endpoint where the release should lead to [baseUrl+baseUrlEndpoint]
Link copied to clipboard
Priority is that used when comparing versions from multiple upstreams.
Functions
Link copied to clipboard
Fetches a version object from the upstream.
Link copied to clipboard
Converts a version string into a DefaultVersion.
Link copied to clipboard
Returns an Update from a DefaultVersion.