raiderio

package
v0.0.0-...-5385a44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Difficulties = []string{
	"normal",
	"heroic",
	"mythic",
}

Raider.IO raid difficulties

View Source
var Raids = []string{
	"The Eternal Palace",
	"Battle of Dazar'alor",
	"Uldir",
	"Crucible of Storms",
	"Tomb of Sargeras",
	"The Emerald Nightmare",
	"The Nighthold",
	"Antorus, The Burning Throne",
	"Trial of Valor",
}

List of raids

View Source
var Regions = []string{
	"world",
	"us",
	"eu",
}

Raider.IO regions

View Source
var RuRealmTranslation = map[string]string{
	"ashenvale":     "ясеневыи-лес",
	"azuregos":      "азурегос",
	"blackscar":     "черныи-шрам",
	"booty-bay":     "пиратская-бухта",
	"borean-tundra": "бореиская-тундра",
	"deathguard":    "страж-смерти",
	"deathweaver":   "ткач-смерти",
	"deepholm":      "подземье",
	"eversong":      "вечная-песня",
	"fordragon":     "дракономор",
	"galakrond":     "галакронд",
	"goldrinn":      "голдринн",
	"gordunni":      "гордунни",
	"greymane":      "седогрив",
	"grom":          "гром",
	"howling-fjord": "ревущии-фьорд",
	"lich-king":     "король-лич",
	"razuvious":     "разувии",
	"soulflayer":    "свежеватель-душ",
	"thermaplugg":   "термоштепсель",
}

Russian realm names translation, required by WarcraftLogs API (v_v)

Functions

This section is empty.

Types

type DefeatedAtGuildModel

type DefeatedAtGuildModel struct {
	DefeatedAt string                               `json:"defeatedAt"` // (string),
	Guild      IDNameFactionLogoURLRealmRegionModel `json:"guild"`      // (IdNameFactionLogoUrlRealmRegionModel, optional)
}

DefeatedAtGuildModel defines the schema for tracking boss defeats by guild.

type Guild

type Guild struct {
	Name   string
	Realm  string
	Region string
}

func GetGuilds

func GetGuilds(raid, difficulty, region string) ([]*Guild, error)

type IDNameFactionLogoURLRealmRegionModel

type IDNameFactionLogoURLRealmRegionModel struct {
	ID      int                      `json:"id"`      // (integer): Internal Raider.IO ID number for this guild ,
	Name    string                   `json:"name"`    // (string): Name of the guild ,
	Faction string                   `json:"faction"` // (string): Faction for this guild ,
	LogoURL string                   `json:"logoUrl"` // (string, optional): Custom logo URL for this guild ,
	Realm   NameSlugIsConnectedModel `json:"realm"`   // (NameSlugIsConnectedModel, optional),
	Region  NameShortNameSlugModel   `json:"region"`  // (NameShortNameSlugModel, optional)
}

IDNameFactionLogoURLRealmRegionModel defines the schema for tracking the guild field in the DefeatedAtGuildModel struct.

type NameShortNameSlugModel

type NameShortNameSlugModel struct {
	Name      string `json:"name"`       // (string): Name of the region ,
	ShortName string `json:"short_name"` // (string): Short name of the region ,
	Slug      string `json:"slug"`       // (string): Slug for the region, suitable for putting in URLs
}

NameShortNameSlugModel defines the schema for tracking a slug's short name.

type NameSlugIsConnectedModel

type NameSlugIsConnectedModel struct {
	Name        string `json:"name"`        // (string): Name of the realm ,
	Slug        string `json:"slug"`        // (string): Slug for the realm, suitable for putting in URLs ,
	IsConnected bool   `json:"isConnected"` // (boolean): Whether the realm is part of a connected realm
}

NameSlugIsConnectedModel defines the schema for tracking a name slug.

type ProgressTotalGuildsGuildsModel

type ProgressTotalGuildsGuildsModel struct {
	Progress    int                    `json:"progress"`    // (integer): How many bosses out of all bosses in this instance ,
	TotalGuilds int                    `json:"totalGuilds"` // (integer): The number of guilds that are at this point of progression ,
	Guilds      []DefeatedAtGuildModel `json:"guilds"`      // (Array[DefeatedAtGuildModel], optional)
}

ProgressTotalGuildsGuildsModel defines the schema for tracking total progression across all guilds.

type ViewRaidingProgressionResponse

type ViewRaidingProgressionResponse struct {
	Progression []ProgressTotalGuildsGuildsModel `json:"progression"` // (Array[ProgressTotalGuildsGuildsModel], optional)
}

ViewRaidingProgressionResponse defines the schema for tracking raiding progression.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL