Versions in this module Expand all Collapse all v0 v0.7.4 Apr 9, 2022 Changes in this version + const TestRouteAdminName + const TestRouteAdminPassword + func Init() *gin.Engine + func NewRouter() *flamego.Flame + func NewTestRoute(t *testing.T) (*flamego.Flame, string, func(tables ...string) error) + type AuthHandler struct + func NewAuthHandler() *AuthHandler + func (*AuthHandler) ManagerAuthenticator(ctx context.Context, session session.Session) error + func (*AuthHandler) ManagerLogin(ctx context.Context, session session.Session, f form.ManagerLogin) error + func (*AuthHandler) ManagerLogout(ctx context.Context, session session.Session) error + func (*AuthHandler) TeamAuthenticator(ctx context.Context, session session.Session) error + func (*AuthHandler) TeamLogin(ctx context.Context, session session.Session, f form.TeamLogin) error + func (*AuthHandler) TeamLogout(ctx context.Context, session session.Session) error + func (*AuthHandler) TeamTokenAuthenticator(ctx context.Context) error + type BulletinHandler struct + func NewBulletinHandler() *BulletinHandler + func (*BulletinHandler) Delete(ctx context.Context, l *i18n.Locale) error + func (*BulletinHandler) List(ctx context.Context) error + func (*BulletinHandler) New(ctx context.Context, f form.NewBulletin) error + func (*BulletinHandler) Update(ctx context.Context, f form.UpdateBulletin, l *i18n.Locale) error + type ChallengeHandler struct + func NewChallengeHandler() *ChallengeHandler + func (*ChallengeHandler) Delete(ctx context.Context, l *i18n.Locale) error + func (*ChallengeHandler) List(ctx context.Context) error + func (*ChallengeHandler) New(ctx context.Context, f form.NewChallenge, l *i18n.Locale) error + func (*ChallengeHandler) SetVisible(ctx context.Context, f form.SetChallengeVisible, l *i18n.Locale) error + func (*ChallengeHandler) Update(ctx context.Context, f form.UpdateChallenge, l *i18n.Locale) error + type FlagHandler struct + func NewFlagHandler() *FlagHandler + func (*FlagHandler) BatchCreate(ctx context.Context) error + func (*FlagHandler) Get(ctx context.Context) error + type GameBoxHandler struct + func NewGameBoxHandler() *GameBoxHandler + func (*GameBoxHandler) Delete(ctx context.Context, l *i18n.Locale) error + func (*GameBoxHandler) List(ctx context.Context) error + func (*GameBoxHandler) New(ctx context.Context, f form.NewGameBox, l *i18n.Locale) error + func (*GameBoxHandler) RefreshFlag(ctx context.Context) error + func (*GameBoxHandler) ResetAll(ctx context.Context) error + func (*GameBoxHandler) SSHTest(ctx context.Context) error + func (*GameBoxHandler) Update(ctx context.Context, f form.UpdateGameBox, l *i18n.Locale) error + type GeneralHandler struct + func NewGeneralHandler() *GeneralHandler + func (*GeneralHandler) Hello(c context.Context) error + func (*GeneralHandler) Init(c context.Context) error + func (*GeneralHandler) NotFound(c context.Context) error + func (*GeneralHandler) Time(c context.Context) error + type ManagerHandler struct + func NewManagerHandler() *ManagerHandler + func (*ManagerHandler) Logs() + func (*ManagerHandler) Panel() + func (*ManagerHandler) Rank(ctx context.Context) error + type TeamHandler struct + func NewTeamHandler() *TeamHandler + func (*TeamHandler) Bulletins(ctx context.Context) error + func (*TeamHandler) Delete(ctx context.Context, l *i18n.Locale) error + func (*TeamHandler) GameBoxes(ctx context.Context, team *db.Team) error + func (*TeamHandler) Info(ctx context.Context, team *db.Team) error + func (*TeamHandler) List(ctx context.Context) error + func (*TeamHandler) New(ctx context.Context, f form.NewTeam, l *i18n.Locale) error + func (*TeamHandler) Rank(ctx context.Context) error + func (*TeamHandler) ResetPassword(ctx context.Context, l *i18n.Locale) error + func (*TeamHandler) SubmitFlag(ctx context.Context, team *db.Team, f form.SubmitFlag) error + func (*TeamHandler) Update(ctx context.Context, f form.UpdateTeam, l *i18n.Locale) error