Versions in this module Expand all Collapse all v1 v1.1.142 Sep 9, 2019 Changes in this version + type APIError struct + Err string + Text string + func (e APIError) Error() string + type Account struct + Access string + Created string + DailyAP int + FractalLevel int + Guilds []string + ID string + MonthlyAP int + Name string + World int + WvWRank int + type Achievement struct + Description string + Flags []string + ID int + Icon string + Name string + Requirement string + Type string + type AchievementCategory struct + Achievements []int + Description string + ID int + Icon string + Name string + Order int + RequiredAccess []string + type AchievementGroup struct + Categories []int + Description string + ID string + Name string + Order int + type AchievementProgress struct + Bits []int + Current int + Done bool + ID int + Max int + type ArticleListing struct + Buys []Listing + ID int + Sells []Listing + type ArticlePrice struct + Buys Price + ID int + Sells Price + type Bag struct + ID int + Inventory []InventoryItem + Size int + type BankItem struct + Count int + ID int + Infusions []int + Skin int + Upgrades []int + type Bonus struct + Owner string + Type string + type Character struct + Age int + Bags []Bag + Crafting []CraftingDiscipline + Created string + Deaths int + Equipment []Equipment + EquipmentPvP EquipmentPvP + Gender string + Guild string + Level int + Name string + Profession string + Race string + Skill Skills + Specalization Specalizations + type Color struct + BaseRGB [3]int + Cloth ColorDetail + ID int + Leather ColorDetail + Metal ColorDetail + Name string + type ColorDetail struct + Brightness int + Contrast float32 + Hue int + Lightness float32 + RGB [3]int + Saturation float32 + type Continent struct + ContinentDims []int + Floors []int + ID int + MaxZoom int + MinZoom int + Name string + type CraftingDiscipline struct + Active bool + Discipline string + Rating int + type Currency struct + Description string + ID int + Icon string + Name string + Order int + type DailyAchievement struct + ID int + Level DailyAchievementLevel + Requirement []string + type DailyAchievementLevel struct + Max int + Min int + type DailyAchievements struct + Fractals []DailyAchievement + PvE []DailyAchievement + PvP []DailyAchievement + Special []DailyAchievement + WvW []DailyAchievement + type DetailSpecialization struct + Background string + Elite bool + ID int + Icon string + MajorTraits []int + MinorTraits []int + Name string + type EmblemLayers struct + ID int + Layers []string + type Equipment struct + ID int + Infusions []int + Skin int + Slot string + Upgrades []int + type EquipmentPvP struct + Amulet int + Rune int + Sigils []int + type Exchange struct + CoinsPerGem int + Quantity int + type Fact struct + Facts []FactType + Icon string + Overrides int + RequiresTrait int + Text string + Type string + type FactType struct + ApplyCount int + Description string + Distance int + Duration int + FinisherType string + HitCount int + Icon string + Percent int + Prefix Fact + Source string + Status string + Target string + Text string + Type string + Value int + type File struct + ID string + Icon string + type GW2Api struct + func NewAuthenticatedGW2Api(auth string) (api *GW2Api, err error) + func NewGW2Api() *GW2Api + func (gw2 *GW2Api) Account() (acc Account, err error) + func (gw2 *GW2Api) AccountAchievements() (achievs []AchievementProgress, err error) + func (gw2 *GW2Api) AccountBank() (items []BankItem, err error) + func (gw2 *GW2Api) AccountDyes() (dyes []int, err error) + func (gw2 *GW2Api) AccountMaterials() (items []MaterialItem, err error) + func (gw2 *GW2Api) AccountMinis() (minis []int, err error) + func (gw2 *GW2Api) AccountSkins() (skins []int, err error) + func (gw2 *GW2Api) AccountWallet() (currency []WalletCurrency, err error) + func (gw2 *GW2Api) AchievementCategories() (res []int, err error) + func (gw2 *GW2Api) AchievementCategoryIds(lang string, ids ...int) (achievs []AchievementCategory, err error) + func (gw2 *GW2Api) AchievementGroupIds(lang string, ids ...string) (achievs []AchievementGroup, err error) + func (gw2 *GW2Api) AchievementGroups() (res []string, err error) + func (gw2 *GW2Api) AchievementIds(lang string, ids ...int) (achievs []Achievement, err error) + func (gw2 *GW2Api) AchievementPages(lang string, page, pageSize int) (achievs []Achievement, err error) + func (gw2 *GW2Api) Achievements() (res []int, err error) + func (gw2 *GW2Api) AchievementsDaily() (achievs DailyAchievements, err error) + func (gw2 *GW2Api) AchievementsDailyTomorrow() (achievs DailyAchievements, err error) + func (gw2 *GW2Api) Build() (v int, err error) + func (gw2 *GW2Api) CharacterIds(ids ...string) (chars []Character, err error) + func (gw2 *GW2Api) Characters() (res []string, err error) + func (gw2 *GW2Api) CharactersPage(page, pageSize int) (chars []Character, err error) + func (gw2 *GW2Api) ColorIds(lang string, ids ...int) (colors []Color, err error) + func (gw2 *GW2Api) Colors() (res []int, err error) + func (gw2 *GW2Api) CommerceExchangeCoins(quantity int64) (res Exchange, err error) + func (gw2 *GW2Api) CommerceExchangeGems(quantity int) (res Exchange, err error) + func (gw2 *GW2Api) CommerceListingIds(ids ...int) (articles []ArticleListing, err error) + func (gw2 *GW2Api) CommerceListingPages(page int, pageSize int) (res []ArticleListing, err error) + func (gw2 *GW2Api) CommerceListings() (res []int, err error) + func (gw2 *GW2Api) CommercePriceIds(ids ...int) (artprices []ArticlePrice, err error) + func (gw2 *GW2Api) CommercePrices() (res []int, err error) + func (gw2 *GW2Api) CommerceTransactionsCurrentBuys() (trans []Transaction, err error) + func (gw2 *GW2Api) CommerceTransactionsCurrentSells() (trans []Transaction, err error) + func (gw2 *GW2Api) CommerceTransactionsHistoryBuys() (trans []Transaction, err error) + func (gw2 *GW2Api) CommerceTransactionsHistorySells() (trans []Transaction, err error) + func (gw2 *GW2Api) ContinentFloorRegionMapPois(continent, floor, region, mapID int) (pois []int, err error) + func (gw2 *GW2Api) ContinentFloorRegionMapSectors(continent, floor, region, mapID int) (sectors []int, err error) + func (gw2 *GW2Api) ContinentFloorRegionMapTasks(continent, floor, region, mapID int) (tasks []int, err error) + func (gw2 *GW2Api) ContinentFloorRegionMaps(continent, floor, region int) (maps []int, err error) + func (gw2 *GW2Api) ContinentFloorRegions(continent, floor int) (regions []int, err error) + func (gw2 *GW2Api) ContinentFloors(continent int) (floors []int, err error) + func (gw2 *GW2Api) ContinentIds(lang string, ids ...int) (conts []Continent, err error) + func (gw2 *GW2Api) Continents() (res []int, err error) + func (gw2 *GW2Api) Currencies() (res []int, err error) + func (gw2 *GW2Api) CurrencyIds(lang string, ids ...int) (currencies []Currency, err error) + func (gw2 *GW2Api) FileIds(ids ...string) (files []File, err error) + func (gw2 *GW2Api) Files() (res []string, err error) + func (gw2 *GW2Api) GuildEmblemBackgroundIds(ids ...int) (layers []EmblemLayers, err error) + func (gw2 *GW2Api) GuildEmblemForegroundIds(ids ...int) (layers []EmblemLayers, err error) + func (gw2 *GW2Api) GuildEmblems() (foreground []int, background []int, err error) + func (gw2 *GW2Api) GuildLog(id string) (log []GuildLogEntry, err error) + func (gw2 *GW2Api) GuildMembers(id string) (member []GuildMember, err error) + func (gw2 *GW2Api) GuildPermissionIds(ids ...string) (guild []GuildPermission, err error) + func (gw2 *GW2Api) GuildPermissions() (res []string, err error) + func (gw2 *GW2Api) GuildPvPTeams(id string) (teams []GuildTeam, err error) + func (gw2 *GW2Api) GuildRanks(id string) (guild []GuildRank, err error) + func (gw2 *GW2Api) GuildStashes(id string) (stash []GuildStash, err error) + func (gw2 *GW2Api) GuildTreasuries(id string) (treasury []GuildTreasury, err error) + func (gw2 *GW2Api) GuildUpgradeIds(lang string, ids ...int) (guild []GuildUpgrade, err error) + func (gw2 *GW2Api) GuildUpgrades() (res []int, err error) + func (gw2 *GW2Api) HasPermission(p Permission) bool + func (gw2 *GW2Api) ItemDetails(page int, pageSize int, lang string, ids ...int) ([]Item, error) + func (gw2 *GW2Api) ItemIds(lang string, ids ...int) (items []Item, err error) + func (gw2 *GW2Api) ItemPages(page int, pageSize int, lang string) (items []Item, err error) + func (gw2 *GW2Api) Items() (res []int, err error) + func (gw2 *GW2Api) MapIds(lang string, ids ...int) (maps []Map, err error) + func (gw2 *GW2Api) Maps() (res []int, err error) + func (gw2 *GW2Api) MatchIds(ids ...string) (match []Match, err error) + func (gw2 *GW2Api) MatchWorld(worldID int) (match Match, err error) + func (gw2 *GW2Api) Matches() (res []string, err error) + func (gw2 *GW2Api) MiniIds(lang string, ids ...int) (minis []Mini, err error) + func (gw2 *GW2Api) Minis() (res []int, err error) + func (gw2 *GW2Api) ObjectiveIds(lang string, ids ...string) (objs []Objective, err error) + func (gw2 *GW2Api) Objectives() (res []string, err error) + func (gw2 *GW2Api) PvPGameIds(ids ...string) (games []PvPGameStats, err error) + func (gw2 *GW2Api) PvPGames() (res []string, err error) + func (gw2 *GW2Api) PvPSeasonID(lang string, id string) (res PvPSeason, err error) + func (gw2 *GW2Api) PvPSeasons() (res []string, err error) + func (gw2 *GW2Api) PvPStandings() (res []PvPSeasonStanding, err error) + func (gw2 *GW2Api) PvPStats() (stats PvPStats, err error) + func (gw2 *GW2Api) QuagganIds(ids ...string) (quag []Quaggan, err error) + func (gw2 *GW2Api) Quaggans() (res []string, err error) + func (gw2 *GW2Api) RecipeIds(ids ...int) (recipes []Recipe, err error) + func (gw2 *GW2Api) RecipeSearchInput(input int) ([]int, error) + func (gw2 *GW2Api) RecipeSearchOutput(output int) ([]int, error) + func (gw2 *GW2Api) Recipes() (res []int, err error) + func (gw2 *GW2Api) Render(signature string, fileID int) (img image.Image, err error) + func (gw2 *GW2Api) SetAuthentication(auth string) (err error) + func (gw2 *GW2Api) SetTimeout(t time.Duration) + func (gw2 *GW2Api) SharedInventory() (slots []SharedInventorySlot, err error) + func (gw2 *GW2Api) SkinIds(lang string, ids ...int) (skins []Skin, err error) + func (gw2 *GW2Api) Skins() (res []int, err error) + func (gw2 *GW2Api) SpecializationIds(lang string, ids ...int) (specs []DetailSpecialization, err error) + func (gw2 *GW2Api) Specializations() (res []int, err error) + func (gw2 *GW2Api) Tile(continent, floor, zoom, x, y int) (img image.Image, err error) + func (gw2 *GW2Api) TokenInfo() (token TokenInfo, err error) + func (gw2 *GW2Api) TraitIds(lang string, ids ...int) (traits []Trait, err error) + func (gw2 *GW2Api) Traits() (res []int, err error) + func (gw2 *GW2Api) WorldIds(lang string, ids ...int) (worlds []World, err error) + func (gw2 *GW2Api) Worlds() (res []int, err error) + type GuildLogEntry struct + Action string + Activity string + ChangedBy string + Coints int + Count int + ID int + InvitedBy string + ItemID int + Motd string + NewRank string + OldRank string + Operation string + Participants []string + Time time.Time + TotalParticipants int + Type string + UpgradeID int + User string + type GuildMember struct + Joined time.Time + Name string + Rank string + Role string + type GuildPermission struct + Description string + ID string + Name string + type GuildRank struct + ID string + Order int + Permissions []string + type GuildStash struct + Coins int + Inventory []GuildStashItem + Size int + UpgradeID int + type GuildStashItem struct + Count int + ID int + type GuildTeam struct + Aggregate WinLoss + Games PvPGameStats + ID int + Ladders LadderStats + Members []GuildMember + Name string + Seasons GuildTeamStats + type GuildTeamStats struct + Losses int + Rating int + SeasonID string + Wins int + type GuildTreasury struct + Count int + ID int + NeededBy []GuildTreasuryUpgrade + type GuildTreasuryUpgrade struct + Count int + UpgradeID int + type GuildUpgrade struct + BuildTime int + Costs []GuildUpgradeCost + Description string + Experience int + ID int + Icon string + Name string + Prerequisites []int + RequiredLevel int + Type string + type GuildUpgradeCost struct + Count int + ItemID int + Name string + Type string + type InventoryItem struct + Count int + ID int + type Item struct + DefaultSkin int + Description string + Details map[string]interface{} + Flags []string + GameTypes []string + ID int + Icon string + Level int + Name string + Rarity string + Restrictions []string + Type string + VendorValue int + type LadderStats struct + Ranked WinLoss + UnRanked WinLoss + type Listing struct + Listings int + Quantity int + UnitPrice int + type Map struct + ContinentID int + ContinentName string + ContinentRect [2][2]int + DefaultFloor int + Floors []int + ID int + MapRect [2][2]int + MaxLevel int + MinLevel int + Name string + RegionID int + RegionName string + type MapWvW struct + Bonuses []Bonus + Deaths TeamAssoc + ID int + Kills TeamAssoc + Objectives []MatchObjective + Scores TeamAssoc + Type string + type Match struct + AllWorlds TeamMulti + Deaths TeamAssoc + EndTime time.Time + ID string + Kills TeamAssoc + Maps []MapWvW + Scores TeamAssoc + StartTime time.Time + Worlds TeamAssoc + type MatchObjective struct + ClaimedAt string + ClaimedBy string + ID string + LastFlipped string + Owner string + Type string + type MaterialItem struct + Category int + Count int + ID int + type Mini struct + ID int + Icon string + ItemID int + Name string + Order int + type Objective struct + Coord []float32 + ID string + MapID int + MapType string + Marker string + Name string + SectorID int + Type string + type Permission uint + const PermAccount + const PermBuilds + const PermCharacter + const PermGuilds + const PermInventory + const PermProgression + const PermPvP + const PermSize + const PermTradingpost + const PermUnlocks + const PermWallet + type PetSelection struct + Aquatic []int + Terrestrial []int + type Price struct + Quantity int + UnitPrice int + type ProfessionStats struct + Elementalist WinLoss + Engineer WinLoss + Guardian WinLoss + Mesmer WinLoss + Necromancer WinLoss + Ranger WinLoss + Revenant WinLoss + Thief WinLoss + Warrior WinLoss + type PvPDivision struct + Flags []string + LargeIcon string + Name string + PipIcon string + SmallIcon string + Tiers []PvPTier + type PvPGameScore struct + Blue int + Red int + type PvPGameStats struct + Ended time.Time + ID string + MapID int + Profession string + RatingType string + Result string + Scores PvPGameScore + Started time.Time + Team string + type PvPSeason struct + Active bool + Divisions []PvPDivision + End time.Time + ID string + Name string + Start time.Time + type PvPSeasonStanding struct + Best PvPStanding + Current PvPStanding + SeasonID string + type PvPStanding struct + Division int + Points int + Repeats int + Tier int + TotalPoints int + type PvPStats struct + Aggregate WinLoss + Ladders LadderStats + Professions ProfessionStats + PvPRank int + PvPRankPoints int + PvPRankRollovers int + type PvPTier struct + Points int + type Quaggan struct + ID string + URL string + type Recipe struct + Disciplines []string + Flags []string + ID int + Ingredients []RecipeIngredient + MinRating int + OutputItemCount int + OutputItemID int + TimeToCraftMS int + Type string + type RecipeIngredient struct + Count int + ItemID int + type SharedInventorySlot struct + Binding string + Count int + ID int + type Skill struct + Description string + Facts []Fact + ID int + Icon string + Name string + TraitedFacts []TraitedFact + type SkillSelection struct + Elite int + Heal int + Legends []string + Pets PetSelection + Utility []int + type Skills struct + PvE SkillSelection + PvP SkillSelection + WvW SkillSelection + type Skin struct + Description string + Details SkinDetails + Flags []string + ID int + Icon string + Name string + Restrictions []string + Type string + type SkinDetails struct + DamageType string + Type string + WeightClass string + type Specalizations struct + PvE []Specialization + PvP []Specialization + WvW []Specialization + type Specialization struct + ID int + Traits []int + type TeamAssoc struct + Blue int + Green int + Red int + type TeamMulti struct + Blue []int + Green []int + Red []int + type TokenInfo struct + ID string + Name string + Permissions []string + type Trait struct + Description string + Facts []Fact + ID int + Icon string + Name string + Order int + Skills []Skill + Slot string + Specialization int + Tier int + TraitedFacts []TraitedFact + type TraitedFact Fact + type Transaction struct + Created string + ID int + ItemID int + Price int + Purchased string + Quantity int + type WalletCurrency struct + ID int + Value int + type WinLoss struct + Byes int + Desertions int + Forfeits int + Losses int + Wins int + type World struct + ID int + Name string