Documentation
¶
Index ¶
- Variables
- func CaptchaFailed(c fiber.Ctx) error
- func ConvertStringArrayToInterfaceArray(stringArray []string) []interface{}
- func DecodeJSONToFloat64Map(data []byte) map[string]float64
- func DecodeJSONToInt64Map(data []byte) map[string]int64
- func DecodeJSONToIntMap(data []byte) map[string]int
- func ErrorResponse(c fiber.Ctx, message string) error
- func GenerateNonce() (string, error)
- func InternalServerError(c fiber.Ctx) error
- func InvalidCredentials(c fiber.Ctx) error
- func NoPlayersFound(c fiber.Ctx) error
- func StringToIntText(text string) (int, error)
- func Unauthorized(c fiber.Ctx) error
- func ValidMinigame(minigame string) bool
- func ValidSkill(skill string) bool
- func ValidateSkills(skills []string) (validSkills []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SkillsMap = map[string]struct{}{ "attack": {}, "defence": {}, "strength": {}, "hitpoints": {}, "ranged": {}, "prayer": {}, "magic": {}, "cooking": {}, "woodcutting": {}, "fletching": {}, "fishing": {}, "firemaking": {}, "crafting": {}, "smithing": {}, "mining": {}, "herblore": {}, "agility": {}, "thieving": {}, "slayer": {}, "farming": {}, "runecraft": {}, "hunter": {}, "construction": {}, } MinigamesMap = map[string]struct{}{ "Bounty Hunter - Hunter": {}, "Bounty Hunter - Rogue": {}, "Bounty Hunter (Legacy) - Hunter": {}, "Bounty Hunter (Legacy) - Rogue": {}, "Clue Scrolls (all)": {}, "Clue Scrolls (beginner)": {}, "Clue Scrolls (easy)": {}, "Clue Scrolls (medium)": {}, "Clue Scrolls (hard)": {}, "Clue Scrolls (elite)": {}, "Clue Scrolls (master)": {}, "LMS - Rank": {}, "PvP Arena - Rank": {}, "Soul Wars Zeal": {}, "Rifts closed": {}, "Abyssal Sire": {}, "Alchemical Hydra": {}, "Artio": {}, "Barrows Chests": {}, "Bryophyta": {}, "Callisto": {}, "Calvar'ion": {}, "Cerberus": {}, "Chambers of Xeric": {}, "Chambers of Xeric: Challenge Mode": {}, "Chaos Elemental": {}, "Chaos Fanatic": {}, "Commander Zilyana": {}, "Corporeal Beast": {}, "Crazy Archaeologist": {}, "Dagannoth Prime": {}, "Dagannoth Rex": {}, "Dagannoth Supreme": {}, "Deranged Archaeologist": {}, "Duke Sucellus": {}, "General Graardor": {}, "Giant Mole": {}, "Grotesque Guardians": {}, "Hespori": {}, "Kalphite Queen": {}, "King Black Dragon": {}, "Kraken": {}, "Kree'Arra": {}, "K'ril Tsutsaroth": {}, "Mimic": {}, "Nex": {}, "Nightmare": {}, "Phosani's Nightmare": {}, "Obor": {}, "Phantom Muspah": {}, "Sarachnis": {}, "Scorpia": {}, "Skotizo": {}, "Spindel": {}, "Tempoross": {}, "The Gauntlet": {}, "The Corrupted Gauntlet": {}, "The Leviathan": {}, "The Whisperer": {}, "Theatre of Blood": {}, "Theatre of Blood: Hard Mode": {}, "Thermonuclear Smoke Devil": {}, "Tombs of Amascut": {}, "Tombs of Amascut: Expert Mode": {}, "TzKal-Zuk": {}, "TzTok-Jad": {}, "Vardorvis": {}, "Venenatis": {}, "Vet'ion": {}, "Vorkath": {}, "Wintertodt": {}, "Zalcano": {}, "Zulrah": {}, "Deadman Points": {}, "League Points": {}, "Colosseum Glory": {}, } )
View Source
var Title = cases.Title(language.English)
Functions ¶
func CaptchaFailed ¶
func CaptchaFailed(c fiber.Ctx) error
func ConvertStringArrayToInterfaceArray ¶
func ConvertStringArrayToInterfaceArray(stringArray []string) []interface{}
ConvertStringArrayToInterfaceArray converts a slice of strings to a slice of interfaces
func DecodeJSONToFloat64Map ¶
func DecodeJSONToInt64Map ¶
func DecodeJSONToIntMap ¶
func ErrorResponse ¶
func GenerateNonce ¶
GenerateNonce creates a secure random nonce
func InternalServerError ¶
func InternalServerError(c fiber.Ctx) error
func InvalidCredentials ¶
func InvalidCredentials(c fiber.Ctx) error
func NoPlayersFound ¶
func NoPlayersFound(c fiber.Ctx) error
func StringToIntText ¶
func Unauthorized ¶
func Unauthorized(c fiber.Ctx) error
func ValidMinigame ¶
func ValidSkill ¶
func ValidateSkills ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.