Versions in this module Expand all Collapse all v1 v1.3.0 May 13, 2024 Changes in this version + func NewServerSnapshot(tb TestingTB, opts ...func(cfg *ServerSnapshotConfig)) domain.ServerSnapshot + func NewServerSnapshotCursor(tb TestingTB, opts ...func(cfg *ServerSnapshotCursorConfig)) domain.ServerSnapshotCursor + func NewServerSnapshotWithRelations(tb TestingTB, opts ...func(cfg *ServerSnapshotWithRelationsConfig)) domain.ServerSnapshotWithRelations + type ServerSnapshotConfig struct + CreatedAt time.Time + Date time.Time + ID int + NumActivePlayers int + NumActiveTribes int + NumBarbarianVillages int + NumBonusVillages int + NumInactivePlayers int + NumInactiveTribes int + NumPlayerVillages int + NumPlayers int + NumTribes int + NumVillages int + ServerKey string + type ServerSnapshotCursorConfig struct + Date time.Time + ID int + ServerKey string + type ServerSnapshotWithRelationsConfig struct + ServerOptions []func(cfg *ServerConfig) + ServerSnapshotOptions []func(cfg *ServerSnapshotConfig) v1.0.1 May 6, 2024 v1.0.0 Apr 6, 2024 Changes in this version + func NewBaseEnnoblement(tb TestingTB, opts ...func(cfg *BaseEnnoblementConfig)) domain.BaseEnnoblement + func NewBasePlayer(tb TestingTB, opts ...func(cfg *BasePlayerConfig)) domain.BasePlayer + func NewBaseServer(tb TestingTB, opts ...func(cfg *BaseServerConfig)) domain.BaseServer + func NewBaseTribe(tb TestingTB, opts ...func(cfg *BaseTribeConfig)) domain.BaseTribe + func NewBaseVillage(tb TestingTB, opts ...func(cfg *BaseVillageConfig)) domain.BaseVillage + func NewBuildingInfo(tb TestingTB) domain.BuildingInfo + func NewCleanUpDataCmdPayload(tb TestingTB, opts ...func(cfg *CleanUpDataCmdPayloadConfig)) domain.CleanUpDataCmdPayload + func NewEnnoblement(tb TestingTB, opts ...func(cfg *EnnoblementConfig)) domain.Ennoblement + func NewEnnoblementCursor(tb TestingTB, opts ...func(cfg *EnnoblementCursorConfig)) domain.EnnoblementCursor + func NewEnnoblementWithRelations(tb TestingTB, opts ...func(cfg *EnnoblementWithRelationsConfig)) domain.EnnoblementWithRelations + func NewOpponentsDefeated(tb TestingTB, opts ...func(cfg *OpponentsDefeatedConfig)) domain.OpponentsDefeated + func NewPlayer(tb TestingTB, opts ...func(cfg *PlayerConfig)) domain.Player + func NewPlayerCursor(tb TestingTB, opts ...func(cfg *PlayerCursorConfig)) domain.PlayerCursor + func NewPlayerSnapshot(tb TestingTB, opts ...func(cfg *PlayerSnapshotConfig)) domain.PlayerSnapshot + func NewPlayerSnapshotCursor(tb TestingTB, opts ...func(cfg *PlayerSnapshotCursorConfig)) domain.PlayerSnapshotCursor + func NewPlayerSnapshotWithRelations(tb TestingTB, opts ...func(cfg *PlayerSnapshotWithRelationsConfig)) domain.PlayerSnapshotWithRelations + func NewPlayerWithRelations(tb TestingTB, opts ...func(cfg *PlayerWithRelationsConfig)) domain.PlayerWithRelations + func NewServer(tb TestingTB, opts ...func(cfg *ServerConfig)) domain.Server + func NewServerConfig(tb TestingTB) domain.ServerConfig + func NewServerCursor(tb TestingTB, opts ...func(cfg *ServerCursorConfig)) domain.ServerCursor + func NewTribe(tb TestingTB, opts ...func(cfg *TribeConfig)) domain.Tribe + func NewTribeChange(tb TestingTB, opts ...func(cfg *TribeChangeConfig)) domain.TribeChange + func NewTribeChangeCursor(tb TestingTB, opts ...func(cfg *TribeChangeCursorConfig)) domain.TribeChangeCursor + func NewTribeChangeWithRelations(tb TestingTB, opts ...func(cfg *TribeChangeWithRelationsConfig)) domain.TribeChangeWithRelations + func NewTribeCursor(tb TestingTB, opts ...func(cfg *TribeCursorConfig)) domain.TribeCursor + func NewTribeSnapshot(tb TestingTB, opts ...func(cfg *TribeSnapshotConfig)) domain.TribeSnapshot + func NewTribeSnapshotCursor(tb TestingTB, opts ...func(cfg *TribeSnapshotCursorConfig)) domain.TribeSnapshotCursor + func NewTribeSnapshotWithRelations(tb TestingTB, opts ...func(cfg *TribeSnapshotWithRelationsConfig)) domain.TribeSnapshotWithRelations + func NewUnitInfo(tb TestingTB) domain.UnitInfo + func NewVersion(tb TestingTB, opts ...func(cfg *VersionConfig)) domain.Version + func NewVersionCursor(tb TestingTB, opts ...func(cfg *VersionCursorConfig)) domain.VersionCursor + func NewVillage(tb TestingTB, opts ...func(cfg *VillageConfig)) domain.Village + func NewVillageCursor(tb TestingTB, opts ...func(cfg *VillageCursorConfig)) domain.VillageCursor + func NewVillageWithRelations(tb TestingTB, opts ...func(cfg *VillageWithRelationsConfig)) domain.VillageWithRelations + func RandID() int + func RandServerKey() string + func RandTribeTag() string + func RandVersionCode() string + type BaseEnnoblementConfig struct + VillageID int + type BasePlayerConfig struct + AllPoints int + ID int + NumVillages int + OD domain.OpponentsDefeated + Rank int + TribeID int + type BaseServerConfig struct + Key string + Open bool + URL *url.URL + type BaseTribeConfig struct + AllPoints int + ID int + NumVillages int + OD domain.OpponentsDefeated + Rank int + Tag string + type BaseVillageConfig struct + Bonus int + ID int + PlayerID int + type CleanUpDataCmdPayloadConfig struct + ServerOptions []func(cfg *ServerConfig) + type EnnoblementConfig struct + ID int + ServerKey string + VillageID int + type EnnoblementCursorConfig struct + CreatedAt time.Time + ID int + ServerKey string + type EnnoblementWithRelationsConfig struct + EnnoblementOptions []func(cfg *EnnoblementConfig) + NewOwnerOptions []func(cfg *PlayerConfig) + NewTribeOptions []func(cfg *TribeConfig) + OldOwnerOptions []func(cfg *PlayerConfig) + OldTribeOptions []func(cfg *TribeConfig) + VillageOptions []func(cfg *VillageConfig) + type OpponentsDefeatedConfig struct + ScoreAtt int + type PlayerConfig struct + BestRank int + BestRankAt time.Time + DeletedAt time.Time + ID int + LastActivityAt time.Time + MostPoints int + MostPointsAt time.Time + MostVillages int + MostVillagesAt time.Time + NumVillages int + OD domain.OpponentsDefeated + Points int + ServerKey string + TribeID int + type PlayerCursorConfig struct + DeletedAt time.Time + ID int + ODScoreAtt int + ODScoreDef int + ODScoreSup int + ODScoreTotal int + Points int + ServerKey string + type PlayerSnapshotConfig struct + CreatedAt time.Time + Date time.Time + ID int + NumVillages int + OD domain.OpponentsDefeated + PlayerID int + Points int + Rank int + ServerKey string + TribeID int + type PlayerSnapshotCursorConfig struct + Date time.Time + ID int + ServerKey string + type PlayerSnapshotWithRelationsConfig struct + PlayerOptions []func(cfg *PlayerConfig) + PlayerSnapshotOptions []func(cfg *PlayerSnapshotConfig) + TribeOptions []func(cfg *TribeConfig) + type PlayerWithRelationsConfig struct + PlayerOptions []func(cfg *PlayerConfig) + ServerOptions []func(cfg *ServerConfig) + TribeOptions []func(cfg *TribeConfig) + type ServerConfig struct + EnnoblementDataSyncedAt time.Time + Key string + Open bool + PlayerDataSyncedAt time.Time + PlayerSnapshotsCreatedAt time.Time + Special bool + TribeDataSyncedAt time.Time + TribeSnapshotsCreatedAt time.Time + URL *url.URL + VersionCode string + VillageDataSyncedAt time.Time + type ServerCursorConfig struct + Key string + Open bool + type TestingTB interface + Cleanup func(f func()) + Errorf func(format string, args ...any) + FailNow func() + Helper func() + type TribeChangeConfig struct + CreatedAt time.Time + ID int + NewTribeID int + OldTribeID int + PlayerID int + ServerKey string + type TribeChangeCursorConfig struct + CreatedAt time.Time + ID int + ServerKey string + type TribeChangeWithRelationsConfig struct + NewTribeOptions []func(cfg *TribeConfig) + OldTribeOptions []func(cfg *TribeConfig) + PlayerOptions []func(cfg *PlayerConfig) + TribeChangeOptions []func(cfg *TribeChangeConfig) + type TribeConfig struct + BestRank int + BestRankAt time.Time + DeletedAt time.Time + ID int + MostPoints int + MostPointsAt time.Time + MostVillages int + MostVillagesAt time.Time + OD domain.OpponentsDefeated + ServerKey string + Tag string + type TribeCursorConfig struct + DeletedAt time.Time + Dominance float64 + ID int + ODScoreAtt int + ODScoreDef int + ODScoreTotal int + Points int + ServerKey string + type TribeSnapshotConfig struct + AllPoints int + CreatedAt time.Time + Date time.Time + Dominance float64 + ID int + NumMembers int + NumVillages int + OD domain.OpponentsDefeated + Points int + Rank int + ServerKey string + TribeID int + type TribeSnapshotCursorConfig struct + Date time.Time + ID int + ServerKey string + type TribeSnapshotWithRelationsConfig struct + TribeOptions []func(cfg *TribeConfig) + TribeSnapshotOptions []func(cfg *TribeSnapshotConfig) + type VersionConfig struct + Code string + type VersionCursorConfig struct + Code string + type VillageConfig struct + ID int + PlayerID int + ServerKey string + type VillageCursorConfig struct + ID int + ServerKey string + type VillageWithRelationsConfig struct + PlayerOptions []func(cfg *PlayerWithRelationsConfig) + VillageOptions []func(cfg *VillageConfig)