Versions in this module Expand all Collapse all v1 v1.1.0 May 5, 2026 v1.0.0 May 3, 2026 Changes in this version + const CompanyTypeDeveloper + const CompanyTypePublisher + var OrderGamesByDefault = OrderBy + var OrderGamesByName = OrderBy + var OrderGamesByRating = OrderBy + var OrderGamesByReleaseDate = OrderBy + func GetGameSlug(name string) string + type Company struct + ID int32 + IGDBID sql.NullInt64 + Name string + type CreateGame struct + Developer string + GenresIDs []int32 + LogoURL string + Name string + PlatformsIDs []int32 + Publisher string + ReleaseDate string + Screenshots []string + Slug string + Summary string + Websites []string + func (cg CreateGame) MapToCreateGameData(publisherID, developerID int32) CreateGameData + type CreateGameData struct + DevelopersIDs []int32 + GenresIDs []int32 + IGDBID int64 + IGDBRating float64 + IGDBRatingCount int32 + LogoURL string + ModerationStatus ModerationStatus + Name string + PlatformsIDs []int32 + PublishersIDs []int32 + ReleaseDate string + Screenshots []string + Slug string + Summary string + Websites []string + type CreateModeration struct + GameData ModerationData + GameID int32 + Status ModerationStatus + func NewCreateModeration(gameID int32, gameData ModerationData) CreateModeration + type CreateRating struct + GameID int32 + Rating uint8 + UserID string + type File struct + FileID string + FileName string + FileURL string + Type string + type Game struct + DevelopersIDs []int32 + GenresIDs []int32 + ID int32 + IGDBID int64 + IGDBRating float64 + IGDBRatingCount int32 + LogoURL string + ModerationID sql.NullInt32 + ModerationStatus ModerationStatus + Name string + PlatformsIDs []int32 + PublishersIDs []int32 + Rating float64 + ReleaseDate types.Date + Screenshots []string + Slug string + Summary string + TrendingIndex float64 + Websites []string + type GameModerationData struct + Game Game + Moderations []Moderation + type GameTrendingData struct + IGDBRating float64 + IGDBRatingCount int32 + Month int + Rating float64 + RatingCount int32 + Year int + type GamesFilter struct + DeveloperID int32 + GenreID int32 + Name string + OrderBy OrderBy + PublisherID int32 + type Genre struct + ID int32 + IGDBID int64 + Name string + type Moderation struct + Attempts int32 + CreatedAt sql.NullTime + Details string + GameData ModerationData + GameID int32 + ID int32 + Status string + UpdatedAt sql.NullTime + type ModerationData struct + Developers []string + Genres []string + LogoURL string + Name string + Publisher string + ReleaseDate string + Screenshots []string + Summary string + Websites []string + func (md *ModerationData) Scan(src any) error + func (md ModerationData) Value() (driver.Value, error) + type ModerationIDGameID struct + GameID int32 + ModerationID int32 + type ModerationStatus string + const ModerationStatusDeclined + const ModerationStatusFailed + const ModerationStatusInProgress + const ModerationStatusPending + const ModerationStatusReady + type OrderBy struct + Field string + Order SortOrder + type Platform struct + Abbreviation string + ID int32 + IGDBID int64 + Name string + type RemoveRating struct + GameID int32 + UserID string + type SortOrder string + const AscendingSortOrder + const DescendingSortOrder + type Task struct + LastRun sql.NullTime + Name string + RunCount int64 + Settings TaskSettings + Status TaskStatus + type TaskInfo struct + Fn func() error + Schedule string + type TaskSettings []byte + func (ts *TaskSettings) Scan(src any) error + func (ts TaskSettings) Value() (driver.Value, error) + type TaskStatus string + const ErrorTaskStatus + const IdleTaskStatus + const RunningTaskStatus + type UpdateGame struct + Developer *string + GenresIDs *[]int32 + LogoURL *string + Name *string + PlatformsIDs *[]int32 + Publisher string + ReleaseDate *string + Screenshots *[]string + Summary *string + Websites *[]string + func (ug UpdateGame) MapToUpdateGameData(g Game, developersIDs []int32) UpdateGameData + type UpdateGameData struct + DevelopersIDs []int32 + GenresIDs []int32 + LogoURL string + ModerationStatus ModerationStatus + Name string + PlatformsIDs []int32 + PublishersIDs []int32 + ReleaseDate string + Screenshots []string + Slug string + Summary string + Websites []string + type UpdateGameIGDBData struct + IGDBRating float64 + IGDBRatingCount int32 + Name string + PlatformsIDs []int32 + Websites []string + type UpdateModerationResult struct + Details string + ResultStatus ModerationStatus + type UserRating struct + GameID int32 + Rating uint8 + UserID string