Documentation ¶
Index ¶
- func UserFromCtx(ctx context.Context) (*domain.User, uuid.UUID)
- type AboutInstance
- type AdminInstance
- type CommonInstance
- type Constants
- type 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) CompleteOAuth(res http.ResponseWriter, req *http.Request)
- func (h *Handler) HandleError(ctx context.Context, err error)
- func (h *Handler) Home() live.Handler
- func (h *Handler) Logout(res http.ResponseWriter, req *http.Request)
- func (ah *Handler) Middleware(h http.Handler) http.Handler
- func (h *Handler) NewAboutInstance(s live.Socket) *AboutInstance
- func (h *Handler) NewAdminInstance(s live.Socket) *AdminInstance
- func (h *Handler) NewCommon(s live.Socket, currentView string) *CommonInstance
- func (h *Handler) NewConstants() *Constants
- func (h *Handler) NewHomeInstance(s live.Socket) *HomeInstance
- func (h *Handler) NewNotFoundInstance(s live.Socket) *NotFoundInstance
- func (h *Handler) NewPrivacyInstance(s live.Socket) *PrivacyInstance
- func (h *Handler) NewProfileInstance(s live.Socket) *ProfileInstance
- func (h *Handler) NewResultInstance(s live.Socket) *ResultInstance
- func (h *Handler) NewStatusInstance(s live.Socket) *StatusInstance
- func (h *Handler) NewTermsInstance(s live.Socket) *TermsInstance
- func (h *Handler) NewTestInstance(s live.Socket) *TestInstance
- func (h *Handler) NotFound() live.Handler
- func (h *Handler) NotFoundRedirect(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Privacy() live.Handler
- func (h *Handler) Profile() live.Handler
- func (h *Handler) Result() live.Handler
- func (h *Handler) Status() live.Handler
- func (h *Handler) Terms() live.Handler
- func (h *Handler) Test() live.Handler
- type HomeInstance
- type NotFoundInstance
- type PrivacyInstance
- type ProfileInstance
- type ResultInstance
- type StatusInstance
- type TermsInstance
- type TestInstance
- type UITransBase
- type UITransHome
- type UITransResult
- type UITransTest
- type UITranslation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AboutInstance ¶
type AboutInstance struct { *CommonInstance Summary *domain.SystemSummary }
type AdminInstance ¶
type AdminInstance struct { *CommonInstance Page int MaxPage int TimeLayout string }
func (*AdminInstance) NextPage ¶
func (ins *AdminInstance) NextPage() int
func (*AdminInstance) PrevPage ¶
func (ins *AdminInstance) PrevPage() int
type CommonInstance ¶
type CommonInstance struct { Env string Domain string Session string Error error Message *string User *domain.User UserID uuid.UUID ShowLoginModal bool ShowLogoutModal bool CurrentView string Version string Dark bool UI *UITranslation // contains filtered or unexported fields }
func (*CommonInstance) CloseAuthModals ¶
func (c *CommonInstance) CloseAuthModals()
func (*CommonInstance) CloseError ¶
func (c *CommonInstance) CloseError()
func (*CommonInstance) CloseMessage ¶
func (c *CommonInstance) CloseMessage()
func (*CommonInstance) Locale ¶
func (c *CommonInstance) Locale() string
func (*CommonInstance) OpenLoginModal ¶
func (c *CommonInstance) OpenLoginModal()
func (*CommonInstance) OpenLogoutModal ¶
func (c *CommonInstance) OpenLogoutModal()
func (*CommonInstance) SetLocale ¶
func (c *CommonInstance) SetLocale(l string)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) BeginOAuth ¶
func (h *Handler) BeginOAuth(res http.ResponseWriter, req *http.Request)
func (*Handler) CompleteOAuth ¶
func (h *Handler) CompleteOAuth(res http.ResponseWriter, req *http.Request)
func (*Handler) HandleError ¶ added in v1.0.0
func (*Handler) NewAboutInstance ¶
func (h *Handler) NewAboutInstance(s live.Socket) *AboutInstance
func (*Handler) NewAdminInstance ¶
func (h *Handler) NewAdminInstance(s live.Socket) *AdminInstance
func (*Handler) NewCommon ¶
func (h *Handler) NewCommon(s live.Socket, currentView string) *CommonInstance
func (*Handler) NewConstants ¶ added in v1.0.4
func (*Handler) NewHomeInstance ¶
func (h *Handler) NewHomeInstance(s live.Socket) *HomeInstance
func (*Handler) NewNotFoundInstance ¶
func (h *Handler) NewNotFoundInstance(s live.Socket) *NotFoundInstance
func (*Handler) NewPrivacyInstance ¶
func (h *Handler) NewPrivacyInstance(s live.Socket) *PrivacyInstance
func (*Handler) NewProfileInstance ¶
func (h *Handler) NewProfileInstance(s live.Socket) *ProfileInstance
func (*Handler) NewResultInstance ¶
func (h *Handler) NewResultInstance(s live.Socket) *ResultInstance
func (*Handler) NewStatusInstance ¶
func (h *Handler) NewStatusInstance(s live.Socket) *StatusInstance
func (*Handler) NewTermsInstance ¶
func (h *Handler) NewTermsInstance(s live.Socket) *TermsInstance
func (*Handler) NewTestInstance ¶
func (h *Handler) NewTestInstance(s live.Socket) *TestInstance
func (*Handler) NotFoundRedirect ¶
func (h *Handler) NotFoundRedirect(w http.ResponseWriter, r *http.Request)
type HomeInstance ¶
type HomeInstance struct { *CommonInstance Tests []*domain.Test Summary *domain.SystemSummary Tags []*domain.Tag ActiveTags []*domain.Tag FilterModeAny bool }
type NotFoundInstance ¶
type NotFoundInstance struct {
*CommonInstance
}
type PrivacyInstance ¶
type PrivacyInstance struct {
*CommonInstance
}
type ProfileInstance ¶
type ProfileInstance struct { *CommonInstance Summary *domain.SystemSummary Page int MaxPage int TimeLayout string }
func (*ProfileInstance) NextPage ¶
func (ins *ProfileInstance) NextPage() int
func (*ProfileInstance) PrevPage ¶
func (ins *ProfileInstance) PrevPage() int
type ResultInstance ¶
type StatusInstance ¶
type StatusInstance struct { *CommonInstance Errors []error Events []domain.Event Version string Summary *domain.SystemSummary }
type TermsInstance ¶
type TermsInstance struct {
*CommonInstance
}
type TestInstance ¶
type UITransBase ¶
type UITransBase struct { }
type UITransHome ¶
type UITransResult ¶ added in v1.0.4
type UITransTest ¶
type UITransTest struct { SelectLoc string InterfaceSettings string Instructions string About string BeginLabel string BeginButton string ShowDetails string HideDetails string AutoNext string AutoNextInfo string ShowInstruction string HideInstruction string PrevButton string NextButton string FinishButton string Page string Of string ResultLinkLabel string ResultLinkInfo string TakeThisButton string ExploreButton string DetailedReport string Disclaimer string NormsInfo string TestMark string }
type UITranslation ¶
type UITranslation struct { Base *UITransBase Home *UITransHome Test *UITransTest Result *UITransResult }
Click to show internal directories.
Click to hide internal directories.