release

package
v0.0.0-...-41ef176 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(engine *gin.Engine, basePath string)

Types

type GameRelease

type GameRelease struct {
	Id     uuid.UUID `json:"id"`
	GameId uuid.UUID `json:"gameId"`
	// TitleOverride can be used if the title of the game is somehow modified for a specific release.
	TitleOverride *string `json:"titleOverride"`
	Description   *string `json:"description"`
	// ReleaseDate indicates when this release was (or will be) published. Nil if not known.
	// Keep in mind that setting nil assumes that this is already released.
	// Use ReleaseDateUnknown to change that.
	ReleaseDate *time.Time `json:"releaseDate"`
	// ReleaseDateUnknown indicates that no release date is currently known or available, but the game is not published yet and will be in the future.
	// Setting this field to true automatically assumes that the release is not public yet, even if ReleaseDate is set in the past.
	// If ReleaseDate is set when this field is true, it should be treated as an estimate instead.
	ReleaseDateUnknown bool `json:"releaseDateUnknown"`
	// PlatformIds contains ids of platforms assigned to this release.
	PlatformIds []uuid.UUID `json:"platformIds"`
}

type SortOrder

type SortOrder uint8
const (
	SortById SortOrder = iota
	SortByTitle
	SortByDate
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL