warcraftlogs

package
v0.0.0-...-c02fb44 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_characterRankings_proto protoreflect.FileDescriptor

Functions

func NewRankingKey

func NewRankingKey(
	sessionId int,
	className string,
	specName string,
	encounterId int,
	reportCode string,
	fightID uint32,
	characterName string,
	server string,
) []byte

func ParseRankingKey

func ParseRankingKey(key []byte) (
	sessionId int,
	className string,
	specName string,
	encounterId int,
	reportCode string,
	fightID int,
	characterFullName string,
)

Types

type CharacterRankingPage

type CharacterRankingPage struct {
	Page         uint32     `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	HasMorePages bool       `protobuf:"varint,2,opt,name=hasMorePages,proto3" json:"hasMorePages,omitempty"`
	Count        uint32     `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Rankings     []*Ranking `protobuf:"bytes,4,rep,name=rankings,proto3" json:"rankings,omitempty"`
	// contains filtered or unexported fields
}

func (*CharacterRankingPage) Descriptor deprecated

func (*CharacterRankingPage) Descriptor() ([]byte, []int)

Deprecated: Use CharacterRankingPage.ProtoReflect.Descriptor instead.

func (*CharacterRankingPage) GetCount

func (x *CharacterRankingPage) GetCount() uint32

func (*CharacterRankingPage) GetHasMorePages

func (x *CharacterRankingPage) GetHasMorePages() bool

func (*CharacterRankingPage) GetPage

func (x *CharacterRankingPage) GetPage() uint32

func (*CharacterRankingPage) GetRankings

func (x *CharacterRankingPage) GetRankings() []*Ranking

func (*CharacterRankingPage) ProtoMessage

func (*CharacterRankingPage) ProtoMessage()

func (*CharacterRankingPage) ProtoReflect

func (x *CharacterRankingPage) ProtoReflect() protoreflect.Message

func (*CharacterRankingPage) Reset

func (x *CharacterRankingPage) Reset()

func (*CharacterRankingPage) String

func (x *CharacterRankingPage) String() string

type Ranking

type Ranking struct {
	Name          string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Class         string             `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"`
	Spec          string             `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
	Amount        float64            `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"`
	HardModeLevel uint32             `protobuf:"varint,5,opt,name=hardModeLevel,proto3" json:"hardModeLevel,omitempty"`
	Duration      uint32             `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"`
	StartTime     uint64             `protobuf:"varint,7,opt,name=startTime,proto3" json:"startTime,omitempty"`
	Report        *Ranking_Report    `protobuf:"bytes,8,opt,name=report,proto3" json:"report,omitempty"`
	Guild         *Ranking_Guild     `protobuf:"bytes,9,opt,name=guild,proto3" json:"guild,omitempty"`
	Server        *Ranking_Server    `protobuf:"bytes,10,opt,name=server,proto3" json:"server,omitempty"`
	BracketData   uint32             `protobuf:"varint,11,opt,name=bracketData,proto3" json:"bracketData,omitempty"`
	Faction       int32              `protobuf:"varint,12,opt,name=faction,proto3" json:"faction,omitempty"`
	Affixes       []uint32           `protobuf:"varint,13,rep,packed,name=affixes,proto3" json:"affixes,omitempty"`
	Medal         string             `protobuf:"bytes,14,opt,name=medal,proto3" json:"medal,omitempty"`
	Score         float64            `protobuf:"fixed64,15,opt,name=score,proto3" json:"score,omitempty"`
	Leaderboard   uint32             `protobuf:"varint,16,opt,name=leaderboard,proto3" json:"leaderboard,omitempty"`
	Talents       []*Ranking_Talents `protobuf:"bytes,17,rep,name=talents,proto3" json:"talents,omitempty"`
	Gear          []*Ranking_Gear    `protobuf:"bytes,18,rep,name=gear,proto3" json:"gear,omitempty"`
	// contains filtered or unexported fields
}

func (*Ranking) Descriptor deprecated

func (*Ranking) Descriptor() ([]byte, []int)

Deprecated: Use Ranking.ProtoReflect.Descriptor instead.

func (*Ranking) GetAffixes

func (x *Ranking) GetAffixes() []uint32

func (*Ranking) GetAmount

func (x *Ranking) GetAmount() float64

func (*Ranking) GetBracketData

func (x *Ranking) GetBracketData() uint32

func (*Ranking) GetClass

func (x *Ranking) GetClass() string

func (*Ranking) GetDuration

func (x *Ranking) GetDuration() uint32

func (*Ranking) GetFaction

func (x *Ranking) GetFaction() int32

func (*Ranking) GetGear

func (x *Ranking) GetGear() []*Ranking_Gear

func (*Ranking) GetGuild

func (x *Ranking) GetGuild() *Ranking_Guild

func (*Ranking) GetHardModeLevel

func (x *Ranking) GetHardModeLevel() uint32

func (*Ranking) GetLeaderboard

func (x *Ranking) GetLeaderboard() uint32

func (*Ranking) GetMedal

func (x *Ranking) GetMedal() string

func (*Ranking) GetName

func (x *Ranking) GetName() string

func (*Ranking) GetReport

func (x *Ranking) GetReport() *Ranking_Report

func (*Ranking) GetScore

func (x *Ranking) GetScore() float64

func (*Ranking) GetServer

func (x *Ranking) GetServer() *Ranking_Server

func (*Ranking) GetSpec

func (x *Ranking) GetSpec() string

func (*Ranking) GetStartTime

func (x *Ranking) GetStartTime() uint64

func (*Ranking) GetTalents

func (x *Ranking) GetTalents() []*Ranking_Talents

func (*Ranking) ProtoMessage

func (*Ranking) ProtoMessage()

func (*Ranking) ProtoReflect

func (x *Ranking) ProtoReflect() protoreflect.Message

func (*Ranking) Reset

func (x *Ranking) Reset()

func (*Ranking) String

func (x *Ranking) String() string

type Ranking_Gear

type Ranking_Gear struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Quality   string   `protobuf:"bytes,2,opt,name=quality,proto3" json:"quality,omitempty"`
	Id        uint32   `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	Icon      string   `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	ItemLevel string   `protobuf:"bytes,5,opt,name=itemLevel,proto3" json:"itemLevel,omitempty"`
	BonusIDs  []string `protobuf:"bytes,6,rep,name=bonusIDs,proto3" json:"bonusIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*Ranking_Gear) Descriptor deprecated

func (*Ranking_Gear) Descriptor() ([]byte, []int)

Deprecated: Use Ranking_Gear.ProtoReflect.Descriptor instead.

func (*Ranking_Gear) GetBonusIDs

func (x *Ranking_Gear) GetBonusIDs() []string

func (*Ranking_Gear) GetIcon

func (x *Ranking_Gear) GetIcon() string

func (*Ranking_Gear) GetId

func (x *Ranking_Gear) GetId() uint32

func (*Ranking_Gear) GetItemLevel

func (x *Ranking_Gear) GetItemLevel() string

func (*Ranking_Gear) GetName

func (x *Ranking_Gear) GetName() string

func (*Ranking_Gear) GetQuality

func (x *Ranking_Gear) GetQuality() string

func (*Ranking_Gear) ProtoMessage

func (*Ranking_Gear) ProtoMessage()

func (*Ranking_Gear) ProtoReflect

func (x *Ranking_Gear) ProtoReflect() protoreflect.Message

func (*Ranking_Gear) Reset

func (x *Ranking_Gear) Reset()

func (*Ranking_Gear) String

func (x *Ranking_Gear) String() string

type Ranking_Guild

type Ranking_Guild struct {
	Id      uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Faction int32  `protobuf:"varint,3,opt,name=faction,proto3" json:"faction,omitempty"`
	// contains filtered or unexported fields
}

func (*Ranking_Guild) Descriptor deprecated

func (*Ranking_Guild) Descriptor() ([]byte, []int)

Deprecated: Use Ranking_Guild.ProtoReflect.Descriptor instead.

func (*Ranking_Guild) GetFaction

func (x *Ranking_Guild) GetFaction() int32

func (*Ranking_Guild) GetId

func (x *Ranking_Guild) GetId() uint32

func (*Ranking_Guild) GetName

func (x *Ranking_Guild) GetName() string

func (*Ranking_Guild) ProtoMessage

func (*Ranking_Guild) ProtoMessage()

func (*Ranking_Guild) ProtoReflect

func (x *Ranking_Guild) ProtoReflect() protoreflect.Message

func (*Ranking_Guild) Reset

func (x *Ranking_Guild) Reset()

func (*Ranking_Guild) String

func (x *Ranking_Guild) String() string

type Ranking_Report

type Ranking_Report struct {
	Code      string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	FightID   uint32 `protobuf:"varint,2,opt,name=fightID,proto3" json:"fightID,omitempty"`
	StartTime uint64 `protobuf:"varint,3,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// contains filtered or unexported fields
}

func (*Ranking_Report) Descriptor deprecated

func (*Ranking_Report) Descriptor() ([]byte, []int)

Deprecated: Use Ranking_Report.ProtoReflect.Descriptor instead.

func (*Ranking_Report) GetCode

func (x *Ranking_Report) GetCode() string

func (*Ranking_Report) GetFightID

func (x *Ranking_Report) GetFightID() uint32

func (*Ranking_Report) GetStartTime

func (x *Ranking_Report) GetStartTime() uint64

func (*Ranking_Report) ProtoMessage

func (*Ranking_Report) ProtoMessage()

func (*Ranking_Report) ProtoReflect

func (x *Ranking_Report) ProtoReflect() protoreflect.Message

func (*Ranking_Report) Reset

func (x *Ranking_Report) Reset()

func (*Ranking_Report) String

func (x *Ranking_Report) String() string

type Ranking_Server

type Ranking_Server struct {
	Id     uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (*Ranking_Server) Descriptor deprecated

func (*Ranking_Server) Descriptor() ([]byte, []int)

Deprecated: Use Ranking_Server.ProtoReflect.Descriptor instead.

func (*Ranking_Server) GetId

func (x *Ranking_Server) GetId() uint32

func (*Ranking_Server) GetName

func (x *Ranking_Server) GetName() string

func (*Ranking_Server) GetRegion

func (x *Ranking_Server) GetRegion() string

func (*Ranking_Server) ProtoMessage

func (*Ranking_Server) ProtoMessage()

func (*Ranking_Server) ProtoReflect

func (x *Ranking_Server) ProtoReflect() protoreflect.Message

func (*Ranking_Server) Reset

func (x *Ranking_Server) Reset()

func (*Ranking_Server) String

func (x *Ranking_Server) String() string

type Ranking_Talents

type Ranking_Talents struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id       uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	TalentID uint32 `protobuf:"varint,3,opt,name=talentID,proto3" json:"talentID,omitempty"`
	Points   uint32 `protobuf:"varint,4,opt,name=points,proto3" json:"points,omitempty"`
	Icon     string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"`
	// contains filtered or unexported fields
}

func (*Ranking_Talents) Descriptor deprecated

func (*Ranking_Talents) Descriptor() ([]byte, []int)

Deprecated: Use Ranking_Talents.ProtoReflect.Descriptor instead.

func (*Ranking_Talents) GetIcon

func (x *Ranking_Talents) GetIcon() string

func (*Ranking_Talents) GetId

func (x *Ranking_Talents) GetId() uint32

func (*Ranking_Talents) GetName

func (x *Ranking_Talents) GetName() string

func (*Ranking_Talents) GetPoints

func (x *Ranking_Talents) GetPoints() uint32

func (*Ranking_Talents) GetTalentID

func (x *Ranking_Talents) GetTalentID() uint32

func (*Ranking_Talents) ProtoMessage

func (*Ranking_Talents) ProtoMessage()

func (*Ranking_Talents) ProtoReflect

func (x *Ranking_Talents) ProtoReflect() protoreflect.Message

func (*Ranking_Talents) Reset

func (x *Ranking_Talents) Reset()

func (*Ranking_Talents) String

func (x *Ranking_Talents) String() string

type WarcraftLogs

type WarcraftLogs struct {
	// contains filtered or unexported fields
}

func NewWarcraftLogs

func NewWarcraftLogs(
	clientID, clientSecret string,
	db database.Database,
) *WarcraftLogs

func (*WarcraftLogs) ReadWorldDataEncounterCharacterRankings

func (t *WarcraftLogs) ReadWorldDataEncounterCharacterRankings(rankingProc func(encounterId int, ranking *Ranking) error) error

func (*WarcraftLogs) ScanWorldDataEncounterCharacterRankings

func (t *WarcraftLogs) ScanWorldDataEncounterCharacterRankings(ctx context.Context, encounterId int, className, specName string) error

type WorldDataEncounterCharacterRankings

type WorldDataEncounterCharacterRankings struct {
	WorldData struct {
		Encounter struct {
			CharacterRankings *CharacterRankingPage `` /* 154-byte string literal not displayed */
		} `graphql:"encounter(id: $encounterId)"`
	}
}

Jump to

Keyboard shortcuts

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