Documentation
¶
Index ¶
- func Collect() error
- func CollectAccount(storedAcc orm.Account, acc gw2api.Account) error
- func MarkNotPlaying(acc gw2api.Account)
- func MarkPlaying(acc gw2api.Account)
- func UpdateAchievement(tx bun.IDB, accountID string, achievementID int, value int) error
- func UpdateActivity(tx bun.IDB, accountID string, rank int, kills int) error
- type Achievement
- type Activity
- type History
- type HistoryType
- type Statistics
- type VoiceUserState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkNotPlaying ¶
func MarkPlaying ¶
func UpdateAchievement ¶ added in v2.0.10
UpdateAchievement updates the achievement of a user
Types ¶
type Achievement ¶ added in v2.0.10
type Achievement struct { ID int64 `bun:",pk"` AccountID string `json:"account_id"` Timestamp time.Time `json:"timestamp"` Achievement int `json:"achievement"` Value int `json:"value"` }
func (Achievement) Equivalent ¶ added in v2.0.10
func (a Achievement) Equivalent(b Achievement) bool
Equivalent checks if two activities contain the same stats and ignores the timestamp
type Activity ¶ added in v2.0.8
type Activity struct { ID int64 `bun:",pk"` AccountID string `json:"account_id"` Timestamp time.Time `json:"timestamp"` Rank int `json:"rank"` Kills int `json:"kills"` }
func (Activity) Equivalent ¶ added in v2.0.8
Equivalent checks if two activities contain the same stats and ignores the timestamp
type History ¶
type History struct { RID int64 `bun:"r_id,pk,scanonly"` Type HistoryType AccountID string Timestamp time.Time `bun:",scanonly"` Old sql.NullString New sql.NullString }
type HistoryType ¶
type HistoryType string
const ( WorldMove HistoryType = "WorldMove" Registered HistoryType = "Registered" )
type Statistics ¶
type Statistics struct {
// contains filtered or unexported fields
}
func NewStatistics ¶
func NewStatistics(verification *verify.Verification) *Statistics
func (*Statistics) WorldStatistics ¶
func (s *Statistics) WorldStatistics(platformID int, channelID string, worldPerspective int, data api.ChannelMetadata) error
Click to show internal directories.
Click to hide internal directories.