Documentation
¶
Index ¶
- Variables
- func AuthenticateUserTicket(ticket string) (common.UserTicketInfo, error)
- func GetPlayerSummaries(steamids ...string) ([]common.PlayerSummaryInfo, error)
- func SendDiscordMessage(url string, data DiscordWebhookRequest) error
- func UnBinHex(s string) []byte
- func UnBinHexString(s string) string
- func ValidateKey(data string) bool
- func WriteError(w http.ResponseWriter, r *http.Request, message string)
- type AuthenticateUserTicketResponse
- type DiscordWebhookEmbed
- type DiscordWebhookEmbedAuthor
- type DiscordWebhookEmbedImage
- type DiscordWebhookRequest
- type GetPlayerSummariesResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DiscordSaveWebhookURL string DiscordStatsWebhookURL string )
View Source
var SteamAPIKey string
Functions ¶
func AuthenticateUserTicket ¶
func AuthenticateUserTicket(ticket string) (common.UserTicketInfo, error)
func GetPlayerSummaries ¶
func GetPlayerSummaries(steamids ...string) ([]common.PlayerSummaryInfo, error)
func SendDiscordMessage ¶
func SendDiscordMessage(url string, data DiscordWebhookRequest) error
func UnBinHexString ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, r *http.Request, message string)
Types ¶
type AuthenticateUserTicketResponse ¶
type AuthenticateUserTicketResponse struct {
Response struct {
Params common.UserTicketInfo `json:"params"`
Error struct {
ErrorCode int `json:"errorcode"`
ErrorDesc string `json:"errordesc"`
} `json:"error"`
} `json:"response"`
}
type DiscordWebhookEmbed ¶
type DiscordWebhookEmbed struct {
Title string `json:"title"`
Description string `json:"description"`
Color int `json:"color"`
Author DiscordWebhookEmbedAuthor `json:"author"`
Image DiscordWebhookEmbedImage `json:"image"`
}
type DiscordWebhookEmbedImage ¶
type DiscordWebhookEmbedImage struct {
URL string `json:"url"`
}
type DiscordWebhookRequest ¶
type DiscordWebhookRequest struct {
Embeds []DiscordWebhookEmbed `json:"embeds"`
AllowedMentions struct {
Parse []string `json:"parse"`
} `json:"allowed_mentions"`
}
type GetPlayerSummariesResponse ¶
type GetPlayerSummariesResponse struct {
Response struct {
Players []common.PlayerSummaryInfo `json:"players"`
} `json:"response"`
}
Click to show internal directories.
Click to hide internal directories.