Documentation ¶
Index ¶
- func ExtractConstructions(pageHTML []byte, clock clockwork.Clock) (buildingID ogame.ID, buildingCountdown int64, researchID ogame.ID, ...)
- func GetNbr(doc *goquery.Document, name string) int64
- func GetNbrExists(doc *goquery.Document, name string) (int64, bool)
- type Extractor
- func (e *Extractor) ExtractArtefactsFromDoc(doc *goquery.Document) (int64, int64)
- func (e *Extractor) ExtractAvailableDiscoveries(pageHTML []byte) int64
- func (e *Extractor) ExtractCancelLfBuildingInfos(pageHTML []byte) (token string, id, listID int64, err error)
- func (e *Extractor) ExtractCancelResearchInfos(pageHTML []byte) (token string, id, listID int64, err error)
- func (e *Extractor) ExtractConstructions(pageHTML []byte) (buildingID ogame.ID, buildingCountdown int64, researchID ogame.ID, ...)
- func (e *Extractor) ExtractEmpire(pageHTML []byte) ([]ogame.EmpireCelestial, error)
- func (e *Extractor) ExtractEspionageReport(pageHTML []byte) (ogame.EspionageReport, error)
- func (e *Extractor) ExtractEspionageReportFromDoc(doc *goquery.Document) (ogame.EspionageReport, error)
- func (e *Extractor) ExtractLfBuildings(pageHTML []byte) (ogame.LfBuildings, error)
- func (e *Extractor) ExtractLfBuildingsFromDoc(doc *goquery.Document) (ogame.LfBuildings, error)
- func (e *Extractor) ExtractLfResearch(pageHTML []byte) (ogame.LfResearches, error)
- func (e *Extractor) ExtractLfResearchFromDoc(doc *goquery.Document) (ogame.LfResearches, error)
- func (e *Extractor) ExtractLfSlotsFromDoc(doc *goquery.Document) [18]ogame.LfSlot
- func (e *Extractor) ExtractOverviewProduction(pageHTML []byte) ([]ogame.Quantifiable, int64, error)
- func (e *Extractor) ExtractOverviewProductionFromDoc(doc *goquery.Document) ([]ogame.Quantifiable, error)
- func (e *Extractor) ExtractResourceSettings(pageHTML []byte) (ogame.ResourceSettings, string, error)
- func (e *Extractor) ExtractResources(pageHTML []byte) ogame.Resources
- func (e *Extractor) ExtractResourcesDetailsFromFullPage(pageHTML []byte) ogame.ResourcesDetails
- func (e *Extractor) ExtractResourcesDetailsFromFullPageFromDoc(doc *goquery.Document) ogame.ResourcesDetails
- func (e *Extractor) ExtractResourcesFromDoc(doc *goquery.Document) ogame.Resources
- func (e *Extractor) ExtractTearDownButtonEnabled(pageHTML []byte) bool
- func (e *Extractor) ExtractTearDownButtonEnabledFromDoc(doc *goquery.Document) bool
- func (e *Extractor) ExtractTechnologyDetails(pageHTML []byte) (out ogame.TechnologyDetails, err error)
- func (e *Extractor) ExtractTechnologyDetailsFromDoc(doc *goquery.Document) (ogame.TechnologyDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractConstructions ¶
Types ¶
type Extractor ¶
Extractor ...
func (*Extractor) ExtractArtefactsFromDoc ¶
ExtractArtefactsFromDoc ...
func (*Extractor) ExtractAvailableDiscoveries ¶
ExtractAvailableDiscoveries ...
func (*Extractor) ExtractCancelLfBuildingInfos ¶
func (e *Extractor) ExtractCancelLfBuildingInfos(pageHTML []byte) (token string, id, listID int64, err error)
ExtractCancelLfBuildingInfos ...
func (*Extractor) ExtractCancelResearchInfos ¶
func (e *Extractor) ExtractCancelResearchInfos(pageHTML []byte) (token string, id, listID int64, err error)
ExtractCancelResearchInfos ...
func (*Extractor) ExtractConstructions ¶
func (e *Extractor) ExtractConstructions(pageHTML []byte) (buildingID ogame.ID, buildingCountdown int64, researchID ogame.ID, researchCountdown int64, lfBuildingID ogame.ID, lfBuildingCountdown int64, lfResearchID ogame.ID, lfResearchCountdown int64)
ExtractConstructions ...
func (*Extractor) ExtractEmpire ¶
func (e *Extractor) ExtractEmpire(pageHTML []byte) ([]ogame.EmpireCelestial, error)
ExtractEmpire ...
func (*Extractor) ExtractEspionageReport ¶
func (e *Extractor) ExtractEspionageReport(pageHTML []byte) (ogame.EspionageReport, error)
ExtractEspionageReport ...
func (*Extractor) ExtractEspionageReportFromDoc ¶
func (e *Extractor) ExtractEspionageReportFromDoc(doc *goquery.Document) (ogame.EspionageReport, error)
ExtractEspionageReportFromDoc ...
func (*Extractor) ExtractLfBuildings ¶
func (e *Extractor) ExtractLfBuildings(pageHTML []byte) (ogame.LfBuildings, error)
ExtractLfBuildings ...
func (*Extractor) ExtractLfBuildingsFromDoc ¶
ExtractLfBuildingsFromDoc ...
func (*Extractor) ExtractLfResearch ¶
func (e *Extractor) ExtractLfResearch(pageHTML []byte) (ogame.LfResearches, error)
ExtractLfResearch ...
func (*Extractor) ExtractLfResearchFromDoc ¶
ExtractLfResearchFromDoc ...
func (*Extractor) ExtractLfSlotsFromDoc ¶
ExtractLfSlotsFromDoc ...
func (*Extractor) ExtractOverviewProduction ¶
ExtractOverviewProduction extracts ships/defenses (partial) production from the overview page
func (*Extractor) ExtractOverviewProductionFromDoc ¶
func (e *Extractor) ExtractOverviewProductionFromDoc(doc *goquery.Document) ([]ogame.Quantifiable, error)
ExtractOverviewProductionFromDoc extracts ships/defenses (partial) production from the overview page
func (*Extractor) ExtractResourceSettings ¶
func (e *Extractor) ExtractResourceSettings(pageHTML []byte) (ogame.ResourceSettings, string, error)
ExtractResourceSettings ...
func (*Extractor) ExtractResources ¶
ExtractResources ...
func (*Extractor) ExtractResourcesDetailsFromFullPage ¶
func (e *Extractor) ExtractResourcesDetailsFromFullPage(pageHTML []byte) ogame.ResourcesDetails
ExtractResourcesDetailsFromFullPage ...
func (*Extractor) ExtractResourcesDetailsFromFullPageFromDoc ¶
func (e *Extractor) ExtractResourcesDetailsFromFullPageFromDoc(doc *goquery.Document) ogame.ResourcesDetails
ExtractResourcesDetailsFromFullPageFromDoc ...
func (*Extractor) ExtractResourcesFromDoc ¶
ExtractResourcesFromDoc ...
func (*Extractor) ExtractTearDownButtonEnabled ¶
ExtractTearDownButtonEnabled ...
func (*Extractor) ExtractTearDownButtonEnabledFromDoc ¶
ExtractTearDownButtonEnabledFromDoc ...
func (*Extractor) ExtractTechnologyDetails ¶
func (e *Extractor) ExtractTechnologyDetails(pageHTML []byte) (out ogame.TechnologyDetails, err error)
ExtractTechnologyDetails ...
func (*Extractor) ExtractTechnologyDetailsFromDoc ¶
func (e *Extractor) ExtractTechnologyDetailsFromDoc(doc *goquery.Document) (ogame.TechnologyDetails, error)
ExtractTechnologyDetailsFromDoc ...