Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2019 Changes in this version + var RespAlreadyApplied = Response + var RespAlreadyInvited = Response + var RespAlreadyJoinedInTeam = Response + var RespBadRequest = Response + var RespContestEnded = Response + var RespContestPending = Response + var RespContestStarted = Response + var RespCoolDown = Response + var RespDangerousOperation = Response + var RespDuplicatedAlias = Response + var RespDuplicatedEmail = Response + var RespDuplicatedName = Response + var RespDuplicatedUsername = Response + var RespFailedToSendEmail = Response + var RespInvalidCaptcha = Response + var RespInvalidCaptchaFor = Response + var RespInvalidInvitationToken = Response + var RespLoggedIn = Response + var RespMemberParticipated = Response + var RespNoSuchApplication = Response + var RespNotAdminOfTeam = Response + var RespNotEnoughPoints = Response + var RespNotFound = Response + var RespNotInWhitelist = Response + var RespNotInvited = Response + var RespNotLoggedIn = Response + var RespNotMemberOfTeam = Response + var RespPartlyFailed = Response + var RespPermissionDenied = Response + var RespProcessed = Response + var RespServerError = Response + var RespSessionExpired = Response + var RespSuccess = Response + var RespTeamParticipated = Response + var RespTimeout = Response + var RespValidationFailed = Response + var RespWriteConfigFile = Response + var RespWrongUsernameOrPassword = Response + func BindJSON(c *gin.Context, r interface{}) (err error) + func GetConfig(c *gin.Context) *cfg.Config + func GetContest(c *gin.Context) *cpt.Contest + func GetDB(c *gin.Context) *gorm.DB + func GetFlag(c *gin.Context) *cpt.Flag + func GetHint(c *gin.Context) *cpt.Hint + func GetNotification(c *gin.Context) *cpt.ContestNotification + func GetProblem(c *gin.Context) *cpt.Problem + func GetRedis(c *gin.Context) *redis.Pool + func GetResource(c *gin.Context) *cpt.Resource + func GetSession(c *gin.Context) *cpt.Session + func GetTeam(c *gin.Context) *cpt.Team + func GetUser(c *gin.Context) *cpt.User + func Pack(c *gin.Context, err *error, response ResponseInterface) + type Response struct + Message string + Status int + Validate *map[string][]string + func (resp *Response) GetHttpStatus() int + func (resp *Response) Pack(err *error) + type ResponseInterface interface + GetHttpStatus func() int + Pack func(*error) v0.0.1 Nov 22, 2019