Documentation ¶
Index ¶
- type BuffActivationExtractorBytes
- type DefensesExtractorBytes
- type DefensesExtractorBytesDoc
- type DefensesExtractorDoc
- type DestroyRocketsExtractorBytes
- type EmpireExtractorBytes
- type EspionageReportExtractorBytes
- type EspionageReportExtractorBytesDoc
- type EspionageReportExtractorDoc
- type EventListExtractorBytes
- type EventListExtractorBytesDoc
- type EventListExtractorDoc
- type Extractor
- type FacilitiesExtractorBytes
- type FacilitiesExtractorBytesDoc
- type FacilitiesExtractorDoc
- type FederationExtractorBytes
- type FetchResourcesExtractorBytes
- type FetchTechsExtractorBytes
- type FleetDispatchExtractorBytes
- type FleetDispatchExtractorBytesDoc
- type FleetDispatchExtractorDoc
- type FleetsExtractorBytes
- type FleetsExtractorDoc
- type FullPageExtractorBytes
- type FullPageExtractorBytesDoc
- type FullPageExtractorDoc
- type GalaxyExtractorBytes
- type HighscoreExtractorBytes
- type HighscoreExtractorBytesDoc
- type HighscoreExtractorDoc
- type JumpGateLayerExtractorBytes
- type LfBuildingsExtractorBytes
- type LfBuildingsExtractorBytesDoc
- type LfBuildingsExtractorDoc
- type LfResearchExtractorBytes
- type LfResearchExtractorBytesDoc
- type LfResearchExtractorDoc
- type MessagesCombatReportExtractorBytes
- type MessagesCombatReportExtractorBytesDoc
- type MessagesCombatReportExtractorDoc
- type MessagesEspionageReportExtractorBytes
- type MessagesEspionageReportExtractorBytesDoc
- type MessagesEspionageReportExtractorDoc
- type MessagesExpeditionExtractorBytes
- type MessagesExpeditionExtractorBytesDoc
- type MessagesExpeditionExtractorDoc
- type MessagesMarketplaceExtractorBytes
- type MissileAttackLayerExtractorBytes
- type MissileAttackLayerExtractorBytesDoc
- type MissileAttackLayerExtractorDoc
- type MovementExtractorBytes
- type MovementExtractorBytesDoc
- type MovementExtractorDoc
- type OverviewExtractorBytes
- type OverviewExtractorBytesDoc
- type OverviewExtractorDoc
- type PhalanxExtractorBytes
- type PlanetLayerExtractorDoc
- type PreferencesExtractorBytes
- type PreferencesExtractorBytesDoc
- type PreferencesExtractorDoc
- type PremiumExtractorBytes
- type ResearchExtractorBytes
- type ResearchExtractorBytesDoc
- type ResearchExtractorDoc
- type ResourcesBuildingsExtractorBytes
- type ResourcesBuildingsExtractorBytesDoc
- type ResourcesBuildingsExtractorDoc
- type ResourcesSettingsExtractorBytes
- type ResourcesSettingsExtractorBytesDoc
- type ResourcesSettingsExtractorDoc
- type ShipyardExtractorBytes
- type ShipyardExtractorBytesDoc
- type ShipyardExtractorDoc
- type TechnologyDetailsExtractorBytes
- type TechnologyDetailsExtractorBytesDoc
- type TechnologyDetailsExtractorDoc
- type TraderAuctioneerExtractorBytes
- type TraderImportExportExtractorBytes
- type TraderImportExportExtractorDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuffActivationExtractorBytes ¶
type BuffActivationExtractorBytes interface {
ExtractBuffActivation(pageHTML []byte) (string, []ogame.Item, error)
}
BuffActivationExtractorBytes BuffActivation is the popups that shows up when clicking the icon to activate an item on the overview page.
type DefensesExtractorBytes ¶
type DefensesExtractorBytesDoc ¶
type DefensesExtractorBytesDoc interface { DefensesExtractorBytes DefensesExtractorDoc }
type DefensesExtractorDoc ¶
type DefensesExtractorDoc interface {
ExtractDefenseFromDoc(doc *goquery.Document) (ogame.DefensesInfos, error)
}
type DestroyRocketsExtractorBytes ¶
type DestroyRocketsExtractorBytes interface {
ExtractDestroyRockets(pageHTML []byte) (abm, ipm int64, token string, err error)
}
DestroyRocketsExtractorBytes popups that shows up when clicking to destroy rockets on the defenses page.
type EmpireExtractorBytes ¶
type EspionageReportExtractorBytes ¶
type EspionageReportExtractorBytes interface {
ExtractEspionageReport(pageHTML []byte) (ogame.EspionageReport, error)
}
EspionageReportExtractorBytes popup that shows the full espionage report
type EspionageReportExtractorBytesDoc ¶
type EspionageReportExtractorBytesDoc interface { EspionageReportExtractorBytes EspionageReportExtractorDoc }
type EspionageReportExtractorDoc ¶
type EspionageReportExtractorDoc interface {
ExtractEspionageReportFromDoc(doc *goquery.Document) (ogame.EspionageReport, error)
}
type EventListExtractorBytes ¶
type EventListExtractorBytes interface { ExtractAttacks(pageHTML []byte, ownCoords []ogame.Coordinate) ([]ogame.AttackEvent, error) ExtractFleetsFromEventList(pageHTML []byte) []ogame.Fleet }
type EventListExtractorBytesDoc ¶
type EventListExtractorBytesDoc interface { EventListExtractorBytes EventListExtractorDoc }
type EventListExtractorDoc ¶
type Extractor ¶
type Extractor interface { GetLanguage() string SetLanguage(lang string) GetLocation() *time.Location SetLocation(loc *time.Location) GetLifeformEnabled() bool SetLifeformEnabled(lifeformEnabled bool) DefensesExtractorBytesDoc EspionageReportExtractorBytesDoc EventListExtractorBytesDoc FacilitiesExtractorBytesDoc FleetDispatchExtractorBytesDoc FullPageExtractorBytesDoc HighscoreExtractorBytesDoc LfBuildingsExtractorBytesDoc LfResearchExtractorBytesDoc MessagesCombatReportExtractorBytesDoc MessagesEspionageReportExtractorBytesDoc MessagesExpeditionExtractorBytesDoc MissileAttackLayerExtractorBytesDoc MovementExtractorBytesDoc OverviewExtractorBytesDoc PreferencesExtractorBytesDoc ResearchExtractorBytesDoc ResourcesBuildingsExtractorBytesDoc ResourcesSettingsExtractorBytesDoc ShipyardExtractorBytesDoc TechnologyDetailsExtractorBytesDoc BuffActivationExtractorBytes DestroyRocketsExtractorBytes EmpireExtractorBytes FederationExtractorBytes FetchResourcesExtractorBytes FetchTechsExtractorBytes GalaxyExtractorBytes JumpGateLayerExtractorBytes MessagesMarketplaceExtractorBytes PhalanxExtractorBytes PremiumExtractorBytes TraderAuctioneerExtractorBytes TraderImportExportExtractorBytes PlanetLayerExtractorDoc TraderImportExportExtractorDoc ExtractCoord(v string) (coord ogame.Coordinate) ExtractHiddenFields(pageHTML []byte) (fields url.Values) ExtractHiddenFieldsFromDoc(doc *goquery.Document) url.Values }
Extractor ...
type FacilitiesExtractorBytesDoc ¶
type FacilitiesExtractorBytesDoc interface { FacilitiesExtractorBytes FacilitiesExtractorDoc }
type FacilitiesExtractorDoc ¶
type FacilitiesExtractorDoc interface {
ExtractFacilitiesFromDoc(doc *goquery.Document) (ogame.Facilities, error)
}
type FederationExtractorBytes ¶
FederationExtractorBytes popup when we click to create a union for our attacking fleet
type FetchResourcesExtractorBytes ¶
type FetchResourcesExtractorBytes interface {
ExtractResourcesDetails(pageHTML []byte) (out ogame.ResourcesDetails, err error)
}
FetchResourcesExtractorBytes "fetchResources" ajax page
type FetchTechsExtractorBytes ¶
type FetchTechsExtractorBytes interface {
ExtractTechs(pageHTML []byte) (ogame.ResourcesBuildings, ogame.Facilities, ogame.ShipsInfos, ogame.DefensesInfos, ogame.Researches, ogame.LfBuildings, error)
}
FetchTechsExtractorBytes ajax page fetchTechs
type FleetDispatchExtractorBytes ¶
type FleetDispatchExtractorBytes interface { FleetsExtractorBytes ExtractFleet1Ships(pageHTML []byte) ogame.ShipsInfos }
type FleetDispatchExtractorBytesDoc ¶
type FleetDispatchExtractorBytesDoc interface { FleetDispatchExtractorBytes FleetDispatchExtractorDoc }
type FleetDispatchExtractorDoc ¶
type FleetDispatchExtractorDoc interface { FleetsExtractorBytes ExtractFleet1ShipsFromDoc(doc *goquery.Document) (s ogame.ShipsInfos) ExtractFleetDispatchACSFromDoc(doc *goquery.Document) []ogame.ACSValues }
type FleetsExtractorBytes ¶
type FleetsExtractorDoc ¶
type FullPageExtractorBytes ¶
type FullPageExtractorBytes interface { ExtractAdmiral(pageHTML []byte) bool ExtractAjaxChatToken(pageHTML []byte) (string, error) ExtractCelestial(pageHTML []byte, v any) (ogame.Celestial, error) ExtractCelestials(pageHTML []byte) ([]ogame.Celestial, error) ExtractCharacterClass(pageHTML []byte) (ogame.CharacterClass, error) ExtractCommander(pageHTML []byte) bool ExtractEngineer(pageHTML []byte) bool ExtractGeologist(pageHTML []byte) bool ExtractIsInVacation(pageHTML []byte) bool ExtractIsMobile(pageHTML []byte) bool ExtractLifeformEnabled(pageHTML []byte) bool ExtractMoon(pageHTML []byte, v any) (ogame.Moon, error) ExtractMoons(pageHTML []byte) []ogame.Moon ExtractOGameTimestampFromBytes(pageHTML []byte) int64 ExtractOgameTimestamp(pageHTML []byte) int64 ExtractPlanet(pageHTML []byte, v any) (ogame.Planet, error) ExtractPlanetCoordinate(pageHTML []byte) (ogame.Coordinate, error) ExtractPlanetID(pageHTML []byte) (ogame.CelestialID, error) ExtractPlanetType(pageHTML []byte) (ogame.CelestialType, error) ExtractPlanets(pageHTML []byte) []ogame.Planet ExtractResources(pageHTML []byte) ogame.Resources ExtractResourcesDetailsFromFullPage(pageHTML []byte) ogame.ResourcesDetails ExtractServerTime(pageHTML []byte) (time.Time, error) ExtractTechnocrat(pageHTML []byte) bool }
type FullPageExtractorBytesDoc ¶
type FullPageExtractorBytesDoc interface { FullPageExtractorBytes FullPageExtractorDoc }
type FullPageExtractorDoc ¶
type FullPageExtractorDoc interface { ExtractAdmiralFromDoc(doc *goquery.Document) bool ExtractBodyIDFromDoc(doc *goquery.Document) string ExtractCelestialFromDoc(doc *goquery.Document, v any) (ogame.Celestial, error) ExtractCelestialsFromDoc(doc *goquery.Document) ([]ogame.Celestial, error) ExtractCharacterClassFromDoc(doc *goquery.Document) (ogame.CharacterClass, error) ExtractCommanderFromDoc(doc *goquery.Document) bool ExtractEngineerFromDoc(doc *goquery.Document) bool ExtractGeologistFromDoc(doc *goquery.Document) bool ExtractIsInVacationFromDoc(doc *goquery.Document) bool ExtractIsMobileFromDoc(doc *goquery.Document) bool ExtractMoonFromDoc(doc *goquery.Document, v any) (ogame.Moon, error) ExtractMoonsFromDoc(doc *goquery.Document) []ogame.Moon ExtractOGameSessionFromDoc(doc *goquery.Document) string ExtractOgameTimestampFromDoc(doc *goquery.Document) int64 ExtractPlanetFromDoc(doc *goquery.Document, v any) (ogame.Planet, error) ExtractPlanetIDFromDoc(doc *goquery.Document) (ogame.CelestialID, error) ExtractPlanetTypeFromDoc(doc *goquery.Document) (ogame.CelestialType, error) ExtractPlanetsFromDoc(doc *goquery.Document) []ogame.Planet ExtractResourcesDetailsFromFullPageFromDoc(doc *goquery.Document) ogame.ResourcesDetails ExtractResourcesFromDoc(doc *goquery.Document) ogame.Resources ExtractServerTimeFromDoc(doc *goquery.Document) (time.Time, error) ExtractTechnocratFromDoc(doc *goquery.Document) bool }
type GalaxyExtractorBytes ¶
type GalaxyExtractorBytes interface {
ExtractGalaxyInfos(pageHTML []byte, botPlayerName string, botPlayerID, botPlayerRank int64) (ogame.SystemInfos, error)
}
GalaxyExtractorBytes ajax page containing galaxy information in galaxy page
type HighscoreExtractorBytes ¶
type HighscoreExtractorBytesDoc ¶
type HighscoreExtractorBytesDoc interface { HighscoreExtractorBytes HighscoreExtractorDoc }
type HighscoreExtractorDoc ¶
type LfBuildingsExtractorBytesDoc ¶
type LfBuildingsExtractorBytesDoc interface { LfBuildingsExtractorBytes LfBuildingsExtractorDoc }
type LfBuildingsExtractorDoc ¶
type LfBuildingsExtractorDoc interface {
ExtractLfBuildingsFromDoc(doc *goquery.Document) (ogame.LfBuildings, error)
}
type LfResearchExtractorBytesDoc ¶
type LfResearchExtractorBytesDoc interface { LfResearchExtractorBytes LfResearchExtractorDoc }
type LfResearchExtractorDoc ¶
type LfResearchExtractorDoc interface {
ExtractLfResearchFromDoc(doc *goquery.Document) (ogame.LfResearches, error)
}
type MessagesCombatReportExtractorBytes ¶
type MessagesCombatReportExtractorBytes interface {
ExtractCombatReportMessagesSummary(pageHTML []byte) ([]ogame.CombatReportSummary, int64)
}
type MessagesCombatReportExtractorBytesDoc ¶
type MessagesCombatReportExtractorBytesDoc interface { MessagesCombatReportExtractorBytes MessagesCombatReportExtractorDoc }
type MessagesCombatReportExtractorDoc ¶
type MessagesCombatReportExtractorDoc interface {
ExtractCombatReportMessagesFromDoc(doc *goquery.Document) ([]ogame.CombatReportSummary, int64)
}
type MessagesEspionageReportExtractorBytes ¶
type MessagesEspionageReportExtractorBytes interface {
ExtractEspionageReportMessageIDs(pageHTML []byte) ([]ogame.EspionageReportSummary, int64)
}
MessagesEspionageReportExtractorBytes ajax page that display all espionage reports summaries
type MessagesEspionageReportExtractorBytesDoc ¶
type MessagesEspionageReportExtractorBytesDoc interface { MessagesEspionageReportExtractorBytes MessagesEspionageReportExtractorDoc }
type MessagesEspionageReportExtractorDoc ¶
type MessagesEspionageReportExtractorDoc interface {
ExtractEspionageReportMessageIDsFromDoc(doc *goquery.Document) ([]ogame.EspionageReportSummary, int64)
}
type MessagesExpeditionExtractorBytes ¶
type MessagesExpeditionExtractorBytes interface {
ExtractExpeditionMessages(pageHTML []byte) ([]ogame.ExpeditionMessage, int64, error)
}
MessagesExpeditionExtractorBytes ajax page that display all expedition messages
type MessagesExpeditionExtractorBytesDoc ¶
type MessagesExpeditionExtractorBytesDoc interface { MessagesExpeditionExtractorBytes MessagesExpeditionExtractorDoc }
type MessagesMarketplaceExtractorBytes ¶
type MessagesMarketplaceExtractorBytes interface {
ExtractMarketplaceMessages(pageHTML []byte) ([]ogame.MarketplaceMessage, int64, error)
}
MessagesMarketplaceExtractorBytes marketplace was removed from the game
type MissileAttackLayerExtractorBytesDoc ¶
type MissileAttackLayerExtractorBytesDoc interface { MissileAttackLayerExtractorBytes MissileAttackLayerExtractorDoc }
type MovementExtractorBytes ¶
type MovementExtractorBytes interface { FleetsExtractorBytes ExtractFleets(pageHTML []byte) (res []ogame.Fleet) }
type MovementExtractorBytesDoc ¶
type MovementExtractorBytesDoc interface { MovementExtractorBytes MovementExtractorDoc }
type MovementExtractorDoc ¶
type MovementExtractorDoc interface { FleetsExtractorDoc ExtractFleetsFromDoc(doc *goquery.Document) (res []ogame.Fleet) }
type OverviewExtractorBytes ¶
type OverviewExtractorBytes interface { ExtractActiveItems(pageHTML []byte) ([]ogame.ActiveItem, error) ExtractCancelBuildingInfos(pageHTML []byte) (token string, techID, listID int64, err error) ExtractCancelFleetToken(pageHTML []byte, fleetID ogame.FleetID) (string, error) ExtractCancelLfBuildingInfos(pageHTML []byte) (token string, id, listID int64, err error) ExtractCancelResearchInfos(pageHTML []byte) (token string, techID, listID int64, err error) ExtractCharacterClass(pageHTML []byte) (ogame.CharacterClass, error) ExtractConstructions(pageHTML []byte) (buildingID ogame.ID, buildingCountdown int64, researchID ogame.ID, researchCountdown int64, lfBuildingID ogame.ID, lfBuildingCountdown int64, lfResearchID ogame.ID, lfResearchCountdown int64) ExtractDMCosts(pageHTML []byte) (ogame.DMCosts, error) ExtractFleetDeutSaveFactor(pageHTML []byte) float64 ExtractOverviewProduction(pageHTML []byte) ([]ogame.Quantifiable, int64, error) ExtractOverviewShipSumCountdownFromBytes(pageHTML []byte) int64 ExtractUserInfos(pageHTML []byte) (ogame.UserInfos, error) }
type OverviewExtractorBytesDoc ¶
type OverviewExtractorBytesDoc interface { OverviewExtractorBytes OverviewExtractorDoc }
type OverviewExtractorDoc ¶
type OverviewExtractorDoc interface { ExtractOverviewProductionFromDoc(doc *goquery.Document) ([]ogame.Quantifiable, error) ExtractCharacterClassFromDoc(doc *goquery.Document) (ogame.CharacterClass, error) }
type PhalanxExtractorBytes ¶
type PlanetLayerExtractorDoc ¶
type PreferencesExtractorBytesDoc ¶
type PreferencesExtractorBytesDoc interface { PreferencesExtractorBytes PreferencesExtractorDoc }
type PreferencesExtractorDoc ¶
type PreferencesExtractorDoc interface { ExtractActivateAutofocusFromDoc(doc *goquery.Document) bool ExtractAnimatedOverviewFromDoc(doc *goquery.Document) bool ExtractAnimatedSlidersFromDoc(doc *goquery.Document) bool ExtractAuctioneerNotificationsFromDoc(doc *goquery.Document) bool ExtractDisableChatBarFromDoc(doc *goquery.Document) bool ExtractDisableOutlawWarningFromDoc(doc *goquery.Document) bool ExtractEconomyNotificationsFromDoc(doc *goquery.Document) bool ExtractEventsShowFromDoc(doc *goquery.Document) int64 ExtractMobileVersionFromDoc(doc *goquery.Document) bool ExtractMsgResultsPerPageFromDoc(doc *goquery.Document) int64 ExtractNotifAccountFromDoc(doc *goquery.Document) bool ExtractNotifAllianceBroadcastsFromDoc(doc *goquery.Document) bool ExtractNotifAllianceMessagesFromDoc(doc *goquery.Document) bool ExtractNotifAuctionsFromDoc(doc *goquery.Document) bool ExtractNotifBuildListFromDoc(doc *goquery.Document) bool ExtractNotifForeignEspionageFromDoc(doc *goquery.Document) bool ExtractNotifFriendlyFleetActivitiesFromDoc(doc *goquery.Document) bool ExtractNotifHostileFleetActivitiesFromDoc(doc *goquery.Document) bool ExtractPopupsNoticesFromDoc(doc *goquery.Document) bool ExtractPreferencesFromDoc(doc *goquery.Document) ogame.Preferences ExtractPreserveSystemOnPlanetChangeFromDoc(doc *goquery.Document) bool ExtractShowActivityMinutesFromDoc(doc *goquery.Document) bool ExtractShowDetailOverlayFromDoc(doc *goquery.Document) bool ExtractShowOldDropDownsFromDoc(doc *goquery.Document) bool ExtractSortOrderFromDoc(doc *goquery.Document) int64 ExtractSortSettingFromDoc(doc *goquery.Document) int64 ExtractSpioAnzFromDoc(doc *goquery.Document) int64 ExtractSpioReportPicturesFromDoc(doc *goquery.Document) bool }
type PremiumExtractorBytes ¶
type PremiumExtractorBytes interface {
ExtractPremiumToken(pageHTML []byte, days int64) (token string, err error)
}
PremiumExtractorBytes ajax page when click to buy an officer
type ResearchExtractorBytes ¶
type ResearchExtractorBytesDoc ¶
type ResearchExtractorBytesDoc interface { ResearchExtractorBytes ResearchExtractorDoc }
type ResearchExtractorDoc ¶
type ResearchExtractorDoc interface {
ExtractResearchFromDoc(doc *goquery.Document) ogame.Researches
}
type ResourcesBuildingsExtractorBytes ¶
type ResourcesBuildingsExtractorBytes interface { ExtractResourcesBuildings(pageHTML []byte) (ogame.ResourcesBuildings, error) ExtractTearDownToken(pageHTML []byte) (string, error) ExtractUpgradeToken(pageHTML []byte) (string, error) }
ResourcesBuildingsExtractorBytes supplies page
type ResourcesBuildingsExtractorBytesDoc ¶
type ResourcesBuildingsExtractorBytesDoc interface { ResourcesBuildingsExtractorBytes ResourcesBuildingsExtractorDoc }
type ResourcesBuildingsExtractorDoc ¶
type ResourcesBuildingsExtractorDoc interface {
ExtractResourcesBuildingsFromDoc(doc *goquery.Document) (ogame.ResourcesBuildings, error)
}
type ResourcesSettingsExtractorBytesDoc ¶
type ResourcesSettingsExtractorBytesDoc interface { ResourcesSettingsExtractorBytes ResourcesSettingsExtractorDoc }
type ShipyardExtractorBytes ¶
type ShipyardExtractorBytes interface { ExtractFleetDeutSaveFactor(pageHTML []byte) float64 ExtractOverviewShipSumCountdownFromBytes(pageHTML []byte) int64 ExtractProduction(pageHTML []byte) ([]ogame.Quantifiable, int64, error) ExtractShips(pageHTML []byte) (ogame.ShipsInfos, error) ExtractUpgradeToken(pageHTML []byte) (string, error) }
type ShipyardExtractorBytesDoc ¶
type ShipyardExtractorBytesDoc interface { ShipyardExtractorBytes ShipyardExtractorDoc }
type ShipyardExtractorDoc ¶
type ShipyardExtractorDoc interface { ExtractProductionFromDoc(doc *goquery.Document) ([]ogame.Quantifiable, error) ExtractShipsFromDoc(doc *goquery.Document) (ogame.ShipsInfos, error) }
type TechnologyDetailsExtractorBytesDoc ¶
type TechnologyDetailsExtractorBytesDoc interface { TechnologyDetailsExtractorBytes TechnologyDetailsExtractorDoc }
type TraderImportExportExtractorBytes ¶
type TraderImportExportExtractorBytes interface {
ExtractOfferOfTheDay(pageHTML []byte) (int64, string, ogame.PlanetResources, ogame.Multiplier, error)
}
TraderImportExportExtractorBytes ajax page Merchant -> Import/Export
type TraderImportExportExtractorDoc ¶
type TraderImportExportExtractorDoc interface {
ExtractOfferOfTheDayFromDoc(doc *goquery.Document) (price int64, importToken string, planetResources ogame.PlanetResources, multiplier ogame.Multiplier, err error)
}