Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Battle ¶
type Battle struct { ID int `validate:"required,min=1"` URL string `validate:"required,url"` Name string `validate:"required"` PartOf string Description string Extract string `validate:"required"` Date string `validate:"required"` Location locations.Location Result string `validate:"required"` TerritorialChanges string Strength statistics.SideNumbers Casualties statistics.SideNumbers Factions SideActors Commanders SideActors CommandersByFaction CommandersByFaction }
Battle stores all the details regarding a specific battle as scraped from Wikipedia
type BattleItem ¶
BattleItem stores the name and URL of a battle after being scraped from Wikipedia's indexed list of battles
type CommandersByFaction ¶
CommandersByFaction is a map that groups all of the WikiIDs of commanders that participated in a specific battle into their corresponding faction WikiIDs
type Repository ¶
Repository is the interface through which WikiBattles may be read and written
type SideActors ¶
SideActors groups actors' WikiIDs into each side of a battle. The struct may be used for either factions or commanders
Click to show internal directories.
Click to hide internal directories.