Versions in this module Expand all Collapse all v0 v0.1.5 Apr 30, 2022 v0.1.4 Apr 30, 2022 v0.1.3 Apr 30, 2022 Changes in this version type CommonInstance + Version string v0.1.2 Apr 30, 2022 v0.1.1 Apr 29, 2022 v0.1.0 Apr 29, 2022 v0.0.9 Apr 27, 2022 Changes in this version type Handler + func (h *Handler) NewPrivacyInstance(s live.Socket) *PrivacyInstance + func (h *Handler) NewTermsInstance(s live.Socket) *TermsInstance + func (h *Handler) Privacy() live.Handler + func (h *Handler) Terms() live.Handler + type PrivacyInstance struct + type TermsInstance struct v0.0.8 Apr 27, 2022 v0.0.7 Apr 27, 2022 Changes in this version type CommonInstance + CurrentView string v0.0.6 Apr 27, 2022 v0.0.5 Apr 26, 2022 v0.0.4 Apr 25, 2022 v0.0.3 Apr 25, 2022 Changes in this version type ProfileInstance + CreateArgs domain.CreateChallengeArgs + CreateChallengeForm bool + CreatedChallenge *domain.Challenge + FormError error + ShowMine bool + TimeLayout string v0.0.2 Apr 24, 2022 v0.0.1 Apr 22, 2022 Changes in this version + func UserFromCtx(ctx context.Context) (*domain.User, uuid.UUID) + type AboutInstance struct + FalseChallengeExample *domain.Challenge + OngoingChallengeExample *domain.Challenge + Summary *domain.SystemSymmary + TrueChallengeExample *domain.Challenge + type AdminInstance struct + ChallengeCount int + Challenges []*domain.Challenge + CreateArgs domain.CreateChallengeArgs + CreateChallengeForm bool + CreatedChallenge *domain.Challenge + FilterArgs domain.FilterChallengesArgs + FormError error + MaxPage int + Page int + TimeLayout string + func (ins *AdminInstance) NextPage() int + func (ins *AdminInstance) PrevPage() int + type ChallengeDetailsInstance struct + Challenge *domain.Challenge + ModalPrediction bool + ShowModal bool + ShowProofs bool + type ChallengeListInstance struct + ChallengeCount int + Challenges []*domain.Challenge + FilterArgs domain.FilterChallengesArgs + MaxPage int + Page int + func (ins *ChallengeListInstance) NextPage() int + func (ins *ChallengeListInstance) PrevPage() int + type ChallengeUpdateInstance struct + Challenge *domain.Challenge + ChallengeArgs domain.CreateChallengeArgs + FormError error + FormPrefill domain.CreateChallengeArgs + OutcomeError error + TimeLayout string + type CommonInstance struct + Env string + Error error + Message *string + Session string + ShowLoginModal bool + ShowLogoutModal bool + User *domain.User + UserID uuid.UUID + func (c *CommonInstance) CloseAuthModals() + func (c *CommonInstance) CloseError() + func (c *CommonInstance) CloseMessage() + func (c *CommonInstance) OpenLoginModal() + func (c *CommonInstance) OpenLogoutModal() + type Handler struct + func NewHandler(app *app.App, logger *logger.Logger, t string) *Handler + func (ah *Handler) Middleware(h http.Handler) http.Handler + func (h *Handler) About() live.Handler + func (h *Handler) Admin() live.Handler + func (h *Handler) BeginOAuth(res http.ResponseWriter, req *http.Request) + func (h *Handler) ChallengeDetails() live.Handler + func (h *Handler) ChallengeList() live.Handler + func (h *Handler) ChallengeUpdate() live.Handler + func (h *Handler) CompleteOAuth(res http.ResponseWriter, req *http.Request) + func (h *Handler) Home() live.Handler + func (h *Handler) Logout(res http.ResponseWriter, req *http.Request) + func (h *Handler) NewAboutInstance(s live.Socket) *AboutInstance + func (h *Handler) NewAdminInstance(s live.Socket) *AdminInstance + func (h *Handler) NewChallengeDetailsInstance(s live.Socket) *ChallengeDetailsInstance + func (h *Handler) NewChallengeListInstance(s live.Socket) *ChallengeListInstance + func (h *Handler) NewChallengeUpdateInstance(s live.Socket) *ChallengeUpdateInstance + func (h *Handler) NewCommon(s live.Socket) *CommonInstance + func (h *Handler) NewHomeInstance(s live.Socket) *HomeInstance + func (h *Handler) NewNotFoundInstance(s live.Socket) *NotFoundInstance + func (h *Handler) NewProfileInstance(s live.Socket) *ProfileInstance + func (h *Handler) NotFound() live.Handler + func (h *Handler) NotFoundRedirect(w http.ResponseWriter, r *http.Request) + func (h *Handler) Profile() live.Handler + type HomeInstance struct + ClosingChallenges []*domain.Challenge + ClosingChallengesCount int + RandomFinishedChallenges []*domain.Challenge + RandomFinishedChallengesCount int + RandomOngoingChallenges []*domain.Challenge + RandomOngoingChallengesCount int + RandomPendingChallenges []*domain.Challenge + RandomPendingChallengesCount int + Summary *domain.SystemSymmary + type NotFoundInstance struct + type ProfileInstance struct + ChallengeCount int + Challenges []*domain.Challenge + FilterArgs domain.FilterChallengesArgs + MaxPage int + Page int + Summary *domain.SystemSymmary + UserSummary *domain.UserSummary + func (ins *ProfileInstance) NextPage() int + func (ins *ProfileInstance) PrevPage() int