Documentation ¶
Index ¶
- Variables
- func AddTime(c *fiber.Ctx, chall_id int, teamid int64) (int64, error)
- func AddToChallenges(chall models.Challenge) error
- func AddToUsers(c *fiber.Ctx, email string) (string, error)
- func AddToVerify(c *fiber.Ctx, toverify *models.ToVerify) error
- func AuthenticateTeam(c *fiber.Ctx, team *models.Team) error
- func CanStartInstance(c *fiber.Ctx, chall_id int, teamid int64) error
- func Connect() error
- func CreateTables() error
- func CreateTeam(c *fiber.Ctx, team *models.Team) error
- func DeleteFlag(c *fiber.Ctx, chall_id int, teamid int64) error
- func DeleteRunning(c *fiber.Ctx, chall_id int, teamid int64) error
- func EmailExists(email string) bool
- func GenerateChallengeEndpoint(method string, subdomain string, domain string, port int, username ...string) string
- func GenerateRandom() string
- func GetInstances(c *fiber.Ctx, teamid int64) ([]models.Instance, error)
- func IsRunning(ctx context.Context, chall_id int, teamid int64) (string, error)
- func JoinTeam(c *fiber.Ctx, teamname string, userid int64) error
- func NewFlag(c *fiber.Ctx, flagObject *models.Flag) error
- func PopulateChalls() error
- func ReadChallenges(c *fiber.Ctx, teamid int64) (map[string][]models.Challenge, error)
- func ReadScores(c *fiber.Ctx, page int) (models.ScoreBoard, error)
- func TeamExists(c *fiber.Ctx, teamid int64) bool
- func TeamNameExists(teamname string) bool
- func UpdateUserTeam(c *fiber.Ctx, userid int64, teamid int64) error
- func UserExists(c *fiber.Ctx, userid int64) bool
- func UserInTeam(c *fiber.Ctx, userid int64) bool
- func UsernameRegistered(username string, email string) bool
- func ValidFlagEntry(ctx context.Context, chall_id int, teamid int64) (models.Challenge, error)
- func ValidOnDemandChallenge(c *fiber.Ctx, chall_id int, teamid int64, challenge *models.Challenge, ...) error
- func ValidateCreds(c *fiber.Ctx, user *models.User) error
- func VerifyFlag(c *fiber.Ctx, chall_id int, userid int64, teamid int64, flag string) (bool, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func AddToChallenges ¶
func AddToUsers ¶
func AddToVerify ¶
func AuthenticateTeam ¶
func CanStartInstance ¶
func CreateTables ¶
func CreateTables() error
func CreateTeam ¶
func DeleteFlag ¶
func DeleteRunning ¶
func EmailExists ¶
func GenerateRandom ¶
func GenerateRandom() string
func PopulateChalls ¶
func PopulateChalls() error
func ReadChallenges ¶
func ReadScores ¶
func ReadScores(c *fiber.Ctx, page int) (models.ScoreBoard, error)
func TeamExists ¶
func TeamNameExists ¶
func UpdateUserTeam ¶
func UserExists ¶
func UserInTeam ¶
func UsernameRegistered ¶
func ValidFlagEntry ¶
func ValidOnDemandChallenge ¶
func ValidateCreds ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.