Documentation ¶
Index ¶
- Variables
- func AddTime(c *fiber.Ctx, userid int, level int) (bool, string, int64)
- func AddToChallenges(chall models.Challenge) error
- func AddToUsers(c *fiber.Ctx, email string) (string, error)
- func AddToUsersDiscord(c *fiber.Ctx, userid int) (string, error)
- func AddToVerify(c *fiber.Ctx, user *models.User) error
- func CanStartInstance(c *fiber.Ctx, userid int, level int) bool
- func Connect() error
- func CreateTables() error
- func DeleteFlag(c *fiber.Ctx, userid int, level int) error
- func DeleteRunning(c *fiber.Ctx, userid int, level int) error
- func EmailExists(email string) bool
- func GenerateRandom() string
- func GetInstances(c *fiber.Ctx, userid int) ([]models.Instance, error)
- func NewFlag(c *fiber.Ctx, userid int, level int, password string, flag string, port int32, ...) error
- func PopulateChalls() error
- func ReadChallenges(c *fiber.Ctx) ([]models.Challenge, error)
- func ReadScores(c *fiber.Ctx) ([]models.Score, error)
- func UserExists(c *fiber.Ctx, userid int) bool
- func UsernameRegistered(username string, email string) bool
- func ValidChallenge(c *fiber.Ctx, level int) bool
- func ValidFlagEntry(c *fiber.Ctx, level int, userid int) bool
- func ValidateCreds(c *fiber.Ctx, creds *models.Creds, user *models.User) error
- func VerifyFlag(c *fiber.Ctx, level int, userid int, flag string) (bool, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func AddToChallenges ¶
func AddToUsers ¶
func AddToUsersDiscord ¶
func AddToVerify ¶
func CanStartInstance ¶
func CreateTables ¶
func CreateTables() error
func DeleteFlag ¶
func DeleteRunning ¶
func EmailExists ¶
func GenerateRandom ¶
func GenerateRandom() string
func PopulateChalls ¶
func PopulateChalls() error
func ReadChallenges ¶
func ReadScores ¶
func UserExists ¶
func UsernameRegistered ¶
func ValidChallenge ¶
func ValidFlagEntry ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.