Files
BedrockFetch/internal/versions.go
Matheus Sampaio Queiroga 0698775e9a
All checks were successful
Find and Upload Minecraft Server versions / build (push) Successful in 1m46s
Update release find to go-bds
2024-04-25 22:29:47 -03:00

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