Documentation ¶
Index ¶
- Variables
- func GenerateOutputPng(structure DeconstructedQueryResponse)
- type CompositionPlayer
- type DamageDowns
- type DeathEvent
- type DeconstructedQueryResponse
- type FFLogsClient
- type Fight
- type FightsResponse
- type QueryResponse
- type RankingData
- type RdpsRankingCharacter
- type SortByRdps
- type SpeedRanking
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var (
JobTickers = map[string]string{
"Paladin": "PLD",
"Warrior": "WAR",
"DarkKnight": "DRK",
"Gunbreaker": "GNB",
"Monk": "MNK",
"Dragoon": "DRG",
"Ninja": "NIN",
"Samurai": "SAM",
"WhiteMage": "WHM",
"Scholar": "SCH",
"Astrologian": "AST",
"Bard": "BRD",
"Machinist": "MCH",
"Dancer": "DNC",
"BlackMage": "BLM",
"Summoner": "SMN",
"RedMage": "RDM",
"BlueMage": "BLU",
}
)
Functions ¶
func GenerateOutputPng ¶
func GenerateOutputPng(structure DeconstructedQueryResponse)
Types ¶
type CompositionPlayer ¶
type DamageDowns ¶
type DeathEvent ¶
type DeconstructedQueryResponse ¶
type DeconstructedQueryResponse struct { TotalTime float64 Deaths map[string]int Players map[string]RdpsRankingCharacter //RdpsRankings []RdpsRankingCharacter SpeedRank SpeedRanking DamageDowns map[string]int Jobs map[string]string }
type FFLogsClient ¶
type FFLogsClient struct { AccessToken Token // contains filtered or unexported fields }
func NewFFLogsClient ¶
func NewFFLogsClient() FFLogsClient
func (FFLogsClient) GetLastFightInfo ¶
func (c FFLogsClient) GetLastFightInfo(report string) (*Fight, int)
func (FFLogsClient) GrabReportInfo ¶
func (c FFLogsClient) GrabReportInfo(report string, fight Fight) DeconstructedQueryResponse
type FightsResponse ¶
type FightsResponse struct { QueryData struct { ReportData struct { Report struct { Fights []Fight `json:"fights"` } `json:"report"` } `json:"reportData"` } `json:"data"` }
type QueryResponse ¶
type QueryResponse struct { Data struct { ReportData struct { Report struct { Composition struct { CompositionData struct { TotalTime float64 `json:"totalTime"` Party []CompositionPlayer `json:"composition"` DeathEvents []DeathEvent `json:"deathEvents"` } `json:"data"` } `json:"composition"` Rankings struct { RankingData []RankingData `json:"data"` } `json:"rankings"` DamageDownEvents struct { DmgDownInformation []DamageDowns `json:"data"` } `json:"events"` } `json:"report"` } `json:"reportData"` } `json:"data"` }
type RankingData ¶
type RankingData struct { Roles struct { Tanks struct { TankCharacters []RdpsRankingCharacter `json:"characters"` } `json:"tanks"` Healers struct { HealerCharacters []RdpsRankingCharacter `json:"characters"` } `json:"healers"` DPS struct { DPSCharacters []RdpsRankingCharacter `json:"characters"` } `json:"dps"` } `json:"roles"` SpeedRank SpeedRanking `json:"speed"` }
type RdpsRankingCharacter ¶
type RdpsRankingCharacter struct { PlayerName string `json:"name"` Rdps float64 `json:"amount"` FightRank string `json:"rank"` BestRank string `json:"best"` RankPercent int `json:"rankPercent"` //Class2 is to detect if the player is a combined healer or tank ranking Class2 *string `json:"class_2"` }
type SortByRdps ¶
type SortByRdps []RdpsRankingCharacter
func (SortByRdps) Len ¶
func (r SortByRdps) Len() int
func (SortByRdps) Less ¶
func (r SortByRdps) Less(i, j int) bool
func (SortByRdps) Swap ¶
func (r SortByRdps) Swap(i, j int)
type SpeedRanking ¶
Click to show internal directories.
Click to hide internal directories.