Documentation ¶
Index ¶
- 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 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
- 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 NewTribeWithRelations(tb TestingTB, opts ...func(cfg *TribeWithRelationsConfig)) domain.TribeWithRelations
- 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
- type BasePlayerConfig
- type BaseServerConfig
- type BaseTribeConfig
- type BaseVillageConfig
- type CleanUpDataCmdPayloadConfig
- type EnnoblementConfig
- type EnnoblementCursorConfig
- type EnnoblementWithRelationsConfig
- type OpponentsDefeatedConfig
- type PlayerConfig
- type PlayerCursorConfig
- type PlayerSnapshotConfig
- type PlayerSnapshotCursorConfig
- type PlayerSnapshotWithRelationsConfig
- type PlayerWithRelationsConfig
- type ServerConfig
- type ServerCursorConfig
- type ServerSnapshotConfig
- type ServerSnapshotCursorConfig
- type ServerSnapshotWithRelationsConfig
- type TestingTB
- type TribeChangeConfig
- type TribeChangeCursorConfig
- type TribeChangeWithRelationsConfig
- type TribeConfig
- type TribeCursorConfig
- type TribeSnapshotConfig
- type TribeSnapshotCursorConfig
- type TribeSnapshotWithRelationsConfig
- type TribeWithRelationsConfig
- type VersionConfig
- type VersionCursorConfig
- type VillageConfig
- type VillageCursorConfig
- type VillageWithRelationsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBaseEnnoblement ¶
func NewBaseEnnoblement(tb TestingTB, opts ...func(cfg *BaseEnnoblementConfig)) domain.BaseEnnoblement
func NewBasePlayer ¶
func NewBasePlayer(tb TestingTB, opts ...func(cfg *BasePlayerConfig)) domain.BasePlayer
func NewBaseServer ¶
func NewBaseServer(tb TestingTB, opts ...func(cfg *BaseServerConfig)) domain.BaseServer
func NewBaseTribe ¶
func NewBaseTribe(tb TestingTB, opts ...func(cfg *BaseTribeConfig)) domain.BaseTribe
func NewBaseVillage ¶
func NewBaseVillage(tb TestingTB, opts ...func(cfg *BaseVillageConfig)) domain.BaseVillage
func NewBuildingInfo ¶
func NewBuildingInfo(tb TestingTB) domain.BuildingInfo
func NewCleanUpDataCmdPayload ¶
func NewCleanUpDataCmdPayload( tb TestingTB, opts ...func(cfg *CleanUpDataCmdPayloadConfig), ) domain.CleanUpDataCmdPayload
func NewEnnoblement ¶
func NewEnnoblement(tb TestingTB, opts ...func(cfg *EnnoblementConfig)) domain.Ennoblement
func NewEnnoblementCursor ¶
func NewEnnoblementCursor(tb TestingTB, opts ...func(cfg *EnnoblementCursorConfig)) domain.EnnoblementCursor
func NewEnnoblementWithRelations ¶
func NewEnnoblementWithRelations( tb TestingTB, opts ...func(cfg *EnnoblementWithRelationsConfig), ) domain.EnnoblementWithRelations
func NewOpponentsDefeated ¶
func NewOpponentsDefeated(tb TestingTB, opts ...func(cfg *OpponentsDefeatedConfig)) domain.OpponentsDefeated
func NewPlayerCursor ¶
func NewPlayerCursor(tb TestingTB, opts ...func(cfg *PlayerCursorConfig)) domain.PlayerCursor
func NewPlayerSnapshot ¶
func NewPlayerSnapshot(tb TestingTB, opts ...func(cfg *PlayerSnapshotConfig)) domain.PlayerSnapshot
func NewPlayerSnapshotCursor ¶
func NewPlayerSnapshotCursor(tb TestingTB, opts ...func(cfg *PlayerSnapshotCursorConfig)) domain.PlayerSnapshotCursor
func NewPlayerSnapshotWithRelations ¶
func NewPlayerSnapshotWithRelations( tb TestingTB, opts ...func(cfg *PlayerSnapshotWithRelationsConfig), ) domain.PlayerSnapshotWithRelations
func NewPlayerWithRelations ¶
func NewPlayerWithRelations(tb TestingTB, opts ...func(cfg *PlayerWithRelationsConfig)) domain.PlayerWithRelations
func NewServerConfig ¶
func NewServerConfig(tb TestingTB) domain.ServerConfig
func NewServerCursor ¶
func NewServerCursor(tb TestingTB, opts ...func(cfg *ServerCursorConfig)) domain.ServerCursor
func NewServerSnapshot ¶ added in v1.1.0
func NewServerSnapshot(tb TestingTB, opts ...func(cfg *ServerSnapshotConfig)) domain.ServerSnapshot
func NewServerSnapshotCursor ¶ added in v1.1.0
func NewServerSnapshotCursor(tb TestingTB, opts ...func(cfg *ServerSnapshotCursorConfig)) domain.ServerSnapshotCursor
func NewServerSnapshotWithRelations ¶ added in v1.3.0
func NewServerSnapshotWithRelations( tb TestingTB, opts ...func(cfg *ServerSnapshotWithRelationsConfig), ) domain.ServerSnapshotWithRelations
func NewTribeChange ¶
func NewTribeChange(tb TestingTB, opts ...func(cfg *TribeChangeConfig)) domain.TribeChange
func NewTribeChangeCursor ¶
func NewTribeChangeCursor(tb TestingTB, opts ...func(cfg *TribeChangeCursorConfig)) domain.TribeChangeCursor
func NewTribeChangeWithRelations ¶
func NewTribeChangeWithRelations( tb TestingTB, opts ...func(cfg *TribeChangeWithRelationsConfig), ) domain.TribeChangeWithRelations
func NewTribeCursor ¶
func NewTribeCursor(tb TestingTB, opts ...func(cfg *TribeCursorConfig)) domain.TribeCursor
func NewTribeSnapshot ¶
func NewTribeSnapshot(tb TestingTB, opts ...func(cfg *TribeSnapshotConfig)) domain.TribeSnapshot
func NewTribeSnapshotCursor ¶
func NewTribeSnapshotCursor(tb TestingTB, opts ...func(cfg *TribeSnapshotCursorConfig)) domain.TribeSnapshotCursor
func NewTribeSnapshotWithRelations ¶
func NewTribeSnapshotWithRelations( tb TestingTB, opts ...func(cfg *TribeSnapshotWithRelationsConfig), ) domain.TribeSnapshotWithRelations
func NewTribeWithRelations ¶ added in v1.8.0
func NewTribeWithRelations(tb TestingTB, opts ...func(cfg *TribeWithRelationsConfig)) domain.TribeWithRelations
func NewUnitInfo ¶
func NewVersion ¶
func NewVersion(tb TestingTB, opts ...func(cfg *VersionConfig)) domain.Version
func NewVersionCursor ¶
func NewVersionCursor(tb TestingTB, opts ...func(cfg *VersionCursorConfig)) domain.VersionCursor
func NewVillage ¶
func NewVillage(tb TestingTB, opts ...func(cfg *VillageConfig)) domain.Village
func NewVillageCursor ¶
func NewVillageCursor(tb TestingTB, opts ...func(cfg *VillageCursorConfig)) domain.VillageCursor
func NewVillageWithRelations ¶
func NewVillageWithRelations(tb TestingTB, opts ...func(cfg *VillageWithRelationsConfig)) domain.VillageWithRelations
func RandServerKey ¶
func RandServerKey() string
func RandTribeTag ¶
func RandTribeTag() string
func RandVersionCode ¶
func RandVersionCode() string
Types ¶
type BaseEnnoblementConfig ¶
type BaseEnnoblementConfig struct {
VillageID int
}
type BasePlayerConfig ¶
type BaseTribeConfig ¶
type BaseVillageConfig ¶
type CleanUpDataCmdPayloadConfig ¶
type CleanUpDataCmdPayloadConfig struct {
ServerOptions []func(cfg *ServerConfig)
}
type EnnoblementConfig ¶
type EnnoblementCursorConfig ¶
type EnnoblementWithRelationsConfig ¶
type EnnoblementWithRelationsConfig struct { EnnoblementOptions []func(cfg *EnnoblementConfig) VillageOptions []func(cfg *VillageConfig) NewOwnerOptions []func(cfg *PlayerConfig) NewTribeOptions []func(cfg *TribeConfig) OldOwnerOptions []func(cfg *PlayerConfig) OldTribeOptions []func(cfg *TribeConfig) }
type OpponentsDefeatedConfig ¶
type OpponentsDefeatedConfig struct {
ScoreAtt int
}
type PlayerConfig ¶
type PlayerCursorConfig ¶
type PlayerSnapshotConfig ¶
type PlayerSnapshotWithRelationsConfig ¶
type PlayerSnapshotWithRelationsConfig struct { PlayerSnapshotOptions []func(cfg *PlayerSnapshotConfig) PlayerOptions []func(cfg *PlayerConfig) TribeOptions []func(cfg *TribeConfig) }
type PlayerWithRelationsConfig ¶
type PlayerWithRelationsConfig struct { ServerOptions []func(cfg *ServerConfig) PlayerOptions []func(cfg *PlayerConfig) TribeOptions []func(cfg *TribeConfig) }
type ServerConfig ¶
type ServerCursorConfig ¶
type ServerSnapshotConfig ¶ added in v1.1.0
type ServerSnapshotCursorConfig ¶ added in v1.1.0
type ServerSnapshotWithRelationsConfig ¶ added in v1.3.0
type ServerSnapshotWithRelationsConfig struct { ServerSnapshotOptions []func(cfg *ServerSnapshotConfig) ServerOptions []func(cfg *ServerConfig) }
type TestingTB ¶
type TestingTB interface { Helper() Errorf(format string, args ...any) FailNow() Cleanup(f func()) }
TestingTB is a subset of the API provided by both *testing.T and *testing.B.
type TribeChangeConfig ¶
type TribeChangeCursorConfig ¶
type TribeChangeWithRelationsConfig ¶
type TribeChangeWithRelationsConfig struct { TribeChangeOptions []func(cfg *TribeChangeConfig) PlayerOptions []func(cfg *PlayerConfig) OldTribeOptions []func(cfg *TribeConfig) NewTribeOptions []func(cfg *TribeConfig) }
type TribeConfig ¶
type TribeCursorConfig ¶
type TribeSnapshotConfig ¶
type TribeSnapshotWithRelationsConfig ¶
type TribeSnapshotWithRelationsConfig struct { TribeSnapshotOptions []func(cfg *TribeSnapshotConfig) TribeOptions []func(cfg *TribeConfig) }
type TribeWithRelationsConfig ¶ added in v1.8.0
type TribeWithRelationsConfig struct { ServerOptions []func(cfg *ServerConfig) TribeOptions []func(cfg *TribeConfig) }
type VersionConfig ¶
type VersionConfig struct {
Code string
}
type VersionCursorConfig ¶
type VersionCursorConfig struct {
Code string
}
type VillageCursorConfig ¶
type VillageWithRelationsConfig ¶
type VillageWithRelationsConfig struct { VillageOptions []func(cfg *VillageConfig) PlayerOptions []func(cfg *PlayerWithRelationsConfig) }
Source Files ¶
- base_ennoblement.go
- base_player.go
- base_server.go
- base_tribe.go
- base_village.go
- building_info.go
- ennoblement.go
- message_payloads.go
- opponents_defeated.go
- player.go
- player_snapshot.go
- server.go
- server_config.go
- server_snapshot.go
- testing_tb.go
- tribe.go
- tribe_change.go
- tribe_snapshot.go
- unit_info.go
- utils.go
- version.go
- village.go
Click to show internal directories.
Click to hide internal directories.