Documentation
¶
Index ¶
- func ConnectToDatabase(connection string, maxAttempts int) (*sqlx.DB, error)
- func GetPlayerAvatar(player *models.Player) error
- func GetPlayerInfo(player *models.Player) error
- func GetPlayerTier(player *models.Player) error
- func NowAsUnixMilliseconds() int64
- func ValidateToken(username string, token string) error
- type PlayerAvatarResponse
- type PlayerInfoResponse
- type PlayerTierResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToDatabase ¶
func GetPlayerAvatar ¶
func GetPlayerInfo ¶
func GetPlayerTier ¶
func NowAsUnixMilliseconds ¶
func NowAsUnixMilliseconds() int64
func ValidateToken ¶
Types ¶
type PlayerAvatarResponse ¶
type PlayerAvatarResponse struct {
Large string `json:"large"`
}
type PlayerInfoResponse ¶
type PlayerTierResponse ¶
type PlayerTierResponse struct { PlayerTier struct { Tier int64 `json:"tier"` } `json:"playerTier"` }