SpigotUpstream

data class SpigotUpstream(val projectId: String, val upstreamPriority: Priority = 0.priority) : Upstream(source)

The Spigot upstream.

Constructors

Link copied to clipboard
constructor(projectId: String, upstreamPriority: Priority = 0.priority)

Properties

Link copied to clipboard

Id of the project

Link copied to clipboard
open override val upstreamPriority: Priority

Priority is that used when comparing versions from multiple upstreams.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Upstream): Int
Link copied to clipboard
open suspend override fun fetch(client: HttpClient, schema: UpdateSchema): DefaultVersion?

Fetches a version object from the upstream.

Link copied to clipboard
open override fun toVersion(version: String, schema: UpdateSchema): DefaultVersion

Converts a version string into a DefaultVersion.

Link copied to clipboard
open override fun update(version: Version): DefaultUpdate

Returns an Update from a DefaultVersion.