All checks were successful
Find and Upload Minecraft Server versions / build (push) Successful in 1m46s
18 lines
679 B
Go
18 lines
679 B
Go
package internal
|
|
|
|
import "time"
|
|
|
|
type VersionPlatform struct {
|
|
ZipFile string `json:"zipFile"` // Minecraft server url server
|
|
ZipSHA1 string `json:"zipSHA1"` // SHA1 to verify integrety to zip file
|
|
TarFile string `json:"tarFile"` // Minecraft server url in tar type
|
|
TarSHA1 string `json:"tarSHA1"` // SHA1 to verify integrety to tar file
|
|
ReleaseDate time.Time `json:"releaseDate"` // Platform release/build day
|
|
}
|
|
|
|
type Version struct {
|
|
IsPreview bool `json:"preview"` // Preview server
|
|
Platforms map[string]VersionPlatform `json:"platforms"` // Golang platforms target
|
|
}
|
|
type Versions map[string]Version
|