Documentation
¶
Index ¶
- func NewClient(token string, timeout time.Duration) *client
- type All
- type Class
- type Config
- type Gear
- type GuildProfile
- type MythicPlusRanks
- type MythicPlusRun
- type MythicPlusScoresBySeason
- type Profiles
- type RaidProgression
- type RaidRanking
- type RequestProfile
- type Scores
- type Segments
- type Service
- type Stats
- type UserProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Client is the configuration for the client. Client struct { // Token is the token for the client. Token string `yaml:"token" mapstructure:"token" validate:"required"` // Timeout is the timeout for the client. Timeout time.Duration `yaml:"timeout" mapstructure:"timeout" validate:"gte=0"` } `yaml:"client" mapstructure:"client"` }
Config is the configuration for the guild service.
type GuildProfile ¶
type GuildProfile struct { RaidRankings map[string]RaidRanking `json:"raid_rankings"` // contains filtered or unexported fields }
type MythicPlusRanks ¶
type MythicPlusRun ¶
type MythicPlusRun struct { Dungeon string `json:"dungeon"` ShortName string `json:"short_name"` MythicLevel int `json:"mythic_level"` CompletedAt time.Time `json:"completed_at"` ClearTimeMS int `json:"clear_time_ms"` NumKeystoneUpgrades int `json:"num_keystone_upgrades"` Score float64 `json:"score"` URL string `json:"url"` }
type Profiles ¶
type Profiles struct { UserProfile *UserProfile `json:"user_profile,omitempty"` GuildProfile *GuildProfile `json:"guild_profile,omitempty"` }
type RaidProgression ¶
type RaidRanking ¶
type RequestProfile ¶
type RequestProfile struct { Type string GuildID snowflake.ID User string // contains filtered or unexported fields }
RequestProfile is the request for the profile.
type Service ¶
type Service interface {
// contains filtered or unexported methods
}
Service is the interface for the guild service.
type UserProfile ¶
type UserProfile struct { Race string `json:"race"` Class string `json:"class"` ActiveSpecName string `json:"active_spec_name"` ActiveSpecRole string `json:"active_spec_role"` Gender string `json:"gender"` Gear Gear `json:"gear"` MythicPlusScoresBySeason []MythicPlusScoresBySeason `json:"mythic_plus_scores_by_season"` MythicPlusRanks MythicPlusRanks `json:"mythic_plus_ranks"` PreviousMythicPlusRanks MythicPlusRanks `json:"previous_mythic_plus_ranks"` MythicPlusRecentRuns []MythicPlusRun `json:"mythic_plus_recent_runs"` MythicPlusBestRuns []MythicPlusRun `json:"mythic_plus_best_runs"` MythicPlusAlternateRuns []MythicPlusRun `json:"mythic_plus_alternate_runs"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.