Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityJson ¶
type ActivityJson struct {
Minutes int64
}
func (*ActivityJson) UnmarshalJSON ¶
func (a *ActivityJson) UnmarshalJSON(d []byte) error
type ContentJson ¶
type ContentJson struct { Galaxy CInt64 `json:"galaxy"` System CInt64 `json:"system"` Position CInt64 `json:"position"` Planets PlanetsList `json:"planets"` Player PlayerJson `json:"player"` Filters string `json:"positionFilters"` }
type Extractor ¶
Extractor ...
func (*Extractor) ExtractGalaxyInfos ¶
func (e *Extractor) ExtractGalaxyInfos(pageHTML []byte, botPlayerName string, botPlayerID, botPlayerRank int64) (ogame.SystemInfos, error)
ExtractGalaxyInfos ...
type GalaxyInfosJson ¶
type GalaxyInfosJson struct { Success bool `json:"success"` Token string `json:"newAjaxToken"` System SystemJson `json:"system"` }
type PlanetJson ¶
type PlanetJson struct { PlayerID CInt64 `json:"playerId"` PlanetID CInt64 `json:"planetId"` PlanetName string `json:"planetName"` Image string `json:"imageInformation"` PlanetType CInt64 `json:"planetType"` IsDestroyed bool `json:"isDestroyed"` Size CInt64 `json:"size"` RequiredShips CInt64 `json:"requiredShips"` Resources ResourcesJson `json:"resources"` Activity ActivityJson `json:"activity"` }
type PlanetsList ¶
type PlanetsList []PlanetJson
func (*PlanetsList) UnmarshalJSON ¶
func (p *PlanetsList) UnmarshalJSON(d []byte) error
type PlayerJson ¶
type PlayerJson struct { PlayerID CInt64 `json:"playerId"` PlayerName string `json:"playerName"` AllianceID CInt64 `json:"allianceId"` AllianceName string `json:"allianceName"` AllianceTag string `json:"allianceTag"` IsAllianceMember bool `json:"isAllianceMember"` PositionPlayer CInt64 `json:"highscorePositionPlayer"` PositionAlliance CInt64 `json:"highscorePositionAlliance"` IsAdmin bool `json:"isAdmin"` IsBanned bool `json:"isBanned"` IsOnVacation bool `json:"isOnVacation"` IsNewbie bool `json:"isNewbie"` IsStrong bool `json:"isStrong"` IsHonorableTarget bool `json:"isHonorableTarget"` IsInactive bool `json:"isInactive"` Rank RankJson `json:"rank"` }
type ResourcesJson ¶
func (*ResourcesJson) UnmarshalJSON ¶
func (r *ResourcesJson) UnmarshalJSON(d []byte) error
type SystemJson ¶
type SystemJson struct { Galaxy CInt64 `json:"galaxy"` System CInt64 `json:"system"` DeuteriumInDebris bool `json:"deuteriumInDebris"` Content []ContentJson `json:"galaxyContent"` }
Click to show internal directories.
Click to hide internal directories.