All checks were successful
Find and Upload Minecraft Server versions / build (push) Successful in 1m35s
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
19 lines
780 B
Go
19 lines
780 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
|
|
DockerImage map[string]string `json:"images,omitempty"` // Docker images
|
|
Platforms map[string]VersionPlatform `json:"platforms"` // Golang platforms target
|
|
}
|
|
type Versions map[string]Version
|