Documentation
¶
Index ¶
- type Activity
- type Data
- func (data *Data) GetActivities(membershipId string, membershipType int, characterId string) ([]*Activity, error)
- func (data *Data) GetPostGameCarnageReportsByInstanceId(instanceId string) ([]*PostGameCarnageReport, error)
- func (data *Data) GetProfilesByUsername(username string) ([]*ProfileContainer, error)
- func (data *Data) Init(dbHandlers *database.DbHandlers, api *d2api.Api)
- type PostGameCarnageReport
- type PostGameCarnageReportBasicValue
- type PostGameCarnageReportEntry
- type PostGameCarnageReportExtended
- type PostGameCarnageReportWeapon
- type PostGameCarnageReportWeaponValue
- type PostGameCarnageReportWeaponValues
- type Profile
- type ProfileContainer
- type ProfileData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct {
InstanceId string
DbActivity *database.DbActivityData
}
type Data ¶
type Data struct {
DbHandlers *database.DbHandlers
Api *d2api.Api
}
func (*Data) GetActivities ¶
func (*Data) GetPostGameCarnageReportsByInstanceId ¶
func (data *Data) GetPostGameCarnageReportsByInstanceId(instanceId string) ([]*PostGameCarnageReport, error)
func (*Data) GetProfilesByUsername ¶
func (data *Data) GetProfilesByUsername(username string) ([]*ProfileContainer, error)
type PostGameCarnageReport ¶
type PostGameCarnageReport struct {
Period string `json:"period"`
Entries []PostGameCarnageReportEntry `json:"entries"`
DbPostGameCarnageReport *database.DbPostGameCarnageReportData
}
type PostGameCarnageReportEntry ¶
type PostGameCarnageReportEntry struct {
CharacterId string `json:"characterId"`
Extended PostGameCarnageReportExtended `json:"extended"`
}
type PostGameCarnageReportExtended ¶
type PostGameCarnageReportExtended struct {
Weapons []PostGameCarnageReportWeapon `json:"weapons"`
}
type PostGameCarnageReportWeapon ¶
type PostGameCarnageReportWeapon struct {
ReferenceId int `json:"referenceId"`
Values PostGameCarnageReportWeaponValues `json:"values"`
}
type PostGameCarnageReportWeaponValue ¶
type PostGameCarnageReportWeaponValue struct {
Basic PostGameCarnageReportBasicValue `json:"basic"`
}
type PostGameCarnageReportWeaponValues ¶
type PostGameCarnageReportWeaponValues struct {
UniqueWeaponKills PostGameCarnageReportWeaponValue `json:"uniqueWeaponKills"`
UniqueWeaponPrecisionKills PostGameCarnageReportWeaponValue `json:"uniqueWeaponPrecisionKills"`
}
type Profile ¶
type Profile struct {
Data ProfileData `json:"data"`
Privacy int `json:"privacy"`
}
type ProfileContainer ¶
type ProfileContainer struct {
Profile Profile `json:"profile"`
ResponseMintedTimestamp string `json:"responseMintedTimestamp"`
SecondaryComponentsMintedTimestamp string `json:"secondaryComponentsMintedTimestamp"`
DBProfile *database.DbProfileData
}
type ProfileData ¶
Click to show internal directories.
Click to hide internal directories.