data

package
v0.0.0-...-f9cc3df Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarDiscordToken       = "DISCORD_TOKEN"
	EnvVarDiscordGuildID     = "DISCORD_GUILD_ID"
	EnvVarJWTSecret          = "JWT_SECRET"
	EnvVarChartMakerHost     = "CHARTMAKER_HOST"
	EnvVarPostgresUser       = "POSTGRES_USER"
	EnvVarPostgresPassword   = "POSTGRES_PASSWORD"
	EnvVarPostgresDB         = "POSTGRES_DB"
	EnvVarClientPostgresPort = "CLIENT_POSTGRES_PORT"
	EnvVarClientPostgresHost = "CLIENT_POSTGRES_HOST"
	EnvVarRedisHost          = "REDIS_HOST"
	EnvVarRedisPort          = "REDIS_PORT"
	EnvVarFrontendURL        = "FRONTEND_URL"
)
View Source
const MaxCulvertScoreThreshold int64 = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type CharacterStatistics

type CharacterStatistics struct {
	PersonalBest              int
	ParticipationCountLabel   string
	ParticipationPercentRatio int
	GuildTopPlacement         int
	Average                   int
}

type ChartMakeMultiplePoints

type ChartMakeMultiplePoints = struct {
	Labels    []string   `json:"labels"`
	DataPlots []DataPlot `json:"dataPlots"`
}

type ChartMakerPoints

type ChartMakerPoints = struct {
	Label string `json:"label"`
	Score int    `json:"score"`
}

type DataPlot

type DataPlot struct {
	CharacterName string `json:"characterName"`
	Scores        []int  `json:"scores"`
}

type MCTClaims

type MCTClaims struct {
	jwt.RegisteredClaims
	DiscordUsername string `json:"discord_username"`
	DiscordServerID string `json:"discord_server_id"`
	DevMode         int    `json:"dev_mode"`
}

type PlayerRank

type PlayerRank struct {
	CharacterName   string `json:"characterName"`
	CharacterImgURL string `json:"characterImgURL"`
	JobName         string `json:"jobName"`
	Level           int    `json:"level"`
	JobID           int    `json:"jobID"`
	JobDetail       int    `json:"jobDetail"`
}

type PlayerRankingResponse

type PlayerRankingResponse struct {
	TotalCount int          `json:"totalCount"`
	Ranks      []PlayerRank `json:"ranks"`
}

type WebGuildMember

type WebGuildMember struct {
	DiscordUsername   string `json:"discord_username"`
	DiscordUserID     string `json:"discord_user_id"`
	DiscordGlobalName string `json:"discord_global_name"`
	DiscordNickname   string `json:"discord_nickname,omitempty"`
}

Jump to

Keyboard shortcuts

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