Documentation ¶
Index ¶
- type Avatar
- type Bedrock
- type Biography
- type Config
- type CoreCookie
- type Credentials
- type CredentialsDiscord
- type DiscordSrvAccounts
- type DiscordUser
- type Error
- type General
- type JWTCallback
- type JWTResponse
- type Me
- type MySQL
- type MySQLCore
- type MySQLDiscordSRV
- type Profile
- type RegisteredServer
- type ServerStatus
- type Tabler
- type UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bedrock ¶
type Config ¶
type Config struct { Servers map[string]RegisteredServer MySQL MySQL General General Credentials Credentials }
type CoreCookie ¶
type CoreCookie struct {
AccessToken string `cookie:"accessToken"`
}
type Credentials ¶
type Credentials struct { State string JWTSecret string `toml:"jwt_secret"` Discord CredentialsDiscord }
type CredentialsDiscord ¶
type DiscordSrvAccounts ¶
type DiscordSrvAccounts struct { Link int `gorm:"column:link;primaryKey;autoIncrement" json:"id"` Discord string `gorm:"column:discord;not null;type:varchar(32);not null" json:"discord"` UUID string `gorm:"column:uuid;not null;type:varchar(36);not null" json:"uuid"` }
func (DiscordSrvAccounts) TableName ¶
func (DiscordSrvAccounts) TableName() string
type DiscordUser ¶
type DiscordUser struct { ID string `json:"id"` Username string `json:"username"` Avatar string `json:"avatar"` Discriminator string `json:"discriminator"` PublicFlags int `json:"public_flags"` Flags int `json:"flags"` Banner any `json:"banner"` AccentColor int `json:"accent_color"` GlobalName string `json:"global_name"` AvatarDecorationData any `json:"avatar_decoration_data"` BannerColor string `json:"banner_color"` Clan any `json:"clan"` MfaEnabled bool `json:"mfa_enabled"` Locale string `json:"locale"` PremiumType int `json:"premium_type"` }
type JWTCallback ¶
type JWTResponse ¶
type JWTResponse struct {
Success bool
}
type MySQL ¶
type MySQL struct { Core MySQLCore DiscordSRV MySQLDiscordSRV }
type MySQLDiscordSRV ¶
type Profile ¶
type Profile struct { ID int `gorm:"column:id; primaryKey; autoIncrement" json:"id"` Name string `gorm:"column:name; type:char(36);" json:"name"` UUID string `gorm:"column:uuid; type:char(36); unique; not null" json:"uuid"` InitialLoginDate time.Time `gorm:"column:initial_login_date; not null" json:"initial_login_date"` LastLoginDate time.Time `gorm:"column:last_login_date; not null;" json:"last_login_date"` TotalPlayTime int64 `gorm:"column:total_play_time; default:0;" json:"total_play_time"` Experience float64 `gorm:"column:experience; default:0.0;" json:"experience"` Currency int `gorm:"column:currency; default:0;" json:"currency"` TotalBuildBlocks int `gorm:"column:total_build_blocks; default:0;" json:"total_build_blocks"` TotalDestroyBlocks int `gorm:"column:total_destroy_blocks; default:0;" json:"total_destroy_blocks"` TotalMobKills int `gorm:"column:total_mob_kills; default:0;" json:"total_mob_kills"` IsBedrock bool `gorm:"-" json:"is_bedrock"` XUID string `gorm:"-" json:"xuid"` Avatar Avatar `gorm:"-" json:"avatar"` Biography string `gorm:"column:biography" json:"biography"` }
type RegisteredServer ¶
type ServerStatus ¶
Click to show internal directories.
Click to hide internal directories.