routes

package
v0.0.0-...-ad62267 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTemplateFuncs

func DefaultTemplateFuncs() template.FuncMap

func Init

func Init()

Types

type Handler

type Handler interface {
	RegisterRoutes(router chi.Router)
}

type HomeHandler

type HomeHandler struct {
	// contains filtered or unexported fields
}

func NewHomeHandler

func NewHomeHandler(userService services.IUserService, keyValueService services.IKeyValueService) *HomeHandler

func (*HomeHandler) GetIndex

func (h *HomeHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*HomeHandler) RegisterRoutes

func (h *HomeHandler) RegisterRoutes(router chi.Router)

type ImprintHandler

type ImprintHandler struct {
	// contains filtered or unexported fields
}

func NewImprintHandler

func NewImprintHandler(keyValueService services.IKeyValueService) *ImprintHandler

func (*ImprintHandler) GetImprint

func (h *ImprintHandler) GetImprint(w http.ResponseWriter, r *http.Request)

func (*ImprintHandler) RegisterRoutes

func (h *ImprintHandler) RegisterRoutes(router chi.Router)

type LeaderboardHandler

type LeaderboardHandler struct {
	// contains filtered or unexported fields
}

func NewLeaderboardHandler

func NewLeaderboardHandler(userService services.IUserService, leaderboardService services.ILeaderboardService) *LeaderboardHandler

func (*LeaderboardHandler) GetIndex

func (h *LeaderboardHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*LeaderboardHandler) RegisterRoutes

func (h *LeaderboardHandler) RegisterRoutes(router chi.Router)

type LoginHandler

type LoginHandler struct {
	// contains filtered or unexported fields
}

func NewLoginHandler

func NewLoginHandler(userService services.IUserService, mailService services.IMailService, keyValueService services.IKeyValueService, webAuthnService services.IWebAuthnService) *LoginHandler

func (*LoginHandler) GetIndex

func (h *LoginHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) GetOidcCallback

func (h *LoginHandler) GetOidcCallback(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) GetOidcLogin

func (h *LoginHandler) GetOidcLogin(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) GetResetPassword

func (h *LoginHandler) GetResetPassword(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) GetSetPassword

func (h *LoginHandler) GetSetPassword(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) GetSignup

func (h *LoginHandler) GetSignup(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) GetWebAuthnOptions

func (h *LoginHandler) GetWebAuthnOptions(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) PostLogin

func (h *LoginHandler) PostLogin(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) PostLoginWebAuthn

func (h *LoginHandler) PostLoginWebAuthn(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) PostLogout

func (h *LoginHandler) PostLogout(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) PostResetPassword

func (h *LoginHandler) PostResetPassword(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) PostSetPassword

func (h *LoginHandler) PostSetPassword(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) PostSignup

func (h *LoginHandler) PostSignup(w http.ResponseWriter, r *http.Request)

func (*LoginHandler) RegisterRoutes

func (h *LoginHandler) RegisterRoutes(router chi.Router)

type MiscHandler

type MiscHandler struct {
	// contains filtered or unexported fields
}

func NewMiscHandler

func NewMiscHandler(userService services.IUserService) *MiscHandler

func (*MiscHandler) GetUnsubscribe

func (h *MiscHandler) GetUnsubscribe(w http.ResponseWriter, r *http.Request)

func (*MiscHandler) RegisterRoutes

func (h *MiscHandler) RegisterRoutes(router chi.Router)

type NoopHandler

type NoopHandler struct {
}

func NewNoopHandler

func NewNoopHandler() *NoopHandler

func (*NoopHandler) RegisterRoutes

func (n *NoopHandler) RegisterRoutes(r chi.Router)

type ProjectsHandler

type ProjectsHandler struct {
	// contains filtered or unexported fields
}

func NewProjectsHandler

func NewProjectsHandler(userService services.IUserService, heartbeatService services.IHeartbeatService, projectService services.IProjectService) *ProjectsHandler

func (*ProjectsHandler) GetIndex

func (h *ProjectsHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*ProjectsHandler) RegisterRoutes

func (h *ProjectsHandler) RegisterRoutes(router chi.Router)

type SettingsHandler

type SettingsHandler struct {
	WebAuthnSrvc services.IWebAuthnService
	// contains filtered or unexported fields
}

func NewSettingsHandler

func NewSettingsHandler(
	userService services.IUserService,
	heartbeatService services.IHeartbeatService,
	durationService services.IDurationService,
	summaryService services.ISummaryService,
	aliasService services.IAliasService,
	aggregationService services.IAggregationService,
	languageMappingService services.ILanguageMappingService,
	projectLabelService services.IProjectLabelService,
	keyValueService services.IKeyValueService,
	mailService services.IMailService,
	apiKeyService services.IApiKeyService,
	webAuthnService services.IWebAuthnService,
) *SettingsHandler

func (*SettingsHandler) GetIndex

func (h *SettingsHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*SettingsHandler) GetWebAuthnOptions

func (h *SettingsHandler) GetWebAuthnOptions(w http.ResponseWriter, r *http.Request)

func (*SettingsHandler) PostIndex

func (h *SettingsHandler) PostIndex(w http.ResponseWriter, r *http.Request)

func (*SettingsHandler) RegisterRoutes

func (h *SettingsHandler) RegisterRoutes(router chi.Router)

type SetupHandler

type SetupHandler struct {
	// contains filtered or unexported fields
}

func NewSetupHandler

func NewSetupHandler(userService services.IUserService) *SetupHandler

func (*SetupHandler) GetIndex

func (h *SetupHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*SetupHandler) RegisterRoutes

func (h *SetupHandler) RegisterRoutes(router chi.Router)

type SubscriptionHandler

type SubscriptionHandler struct {
	// contains filtered or unexported fields
}

func NewSubscriptionHandler

func NewSubscriptionHandler(
	userService services.IUserService,
	mailService services.IMailService,
	keyValueService services.IKeyValueService,
) *SubscriptionHandler

func (*SubscriptionHandler) GetCheckoutCancel

func (h *SubscriptionHandler) GetCheckoutCancel(w http.ResponseWriter, r *http.Request)

func (*SubscriptionHandler) GetCheckoutSuccess

func (h *SubscriptionHandler) GetCheckoutSuccess(w http.ResponseWriter, r *http.Request)

func (*SubscriptionHandler) PostCheckout

func (h *SubscriptionHandler) PostCheckout(w http.ResponseWriter, r *http.Request)

func (*SubscriptionHandler) PostPortal

func (h *SubscriptionHandler) PostPortal(w http.ResponseWriter, r *http.Request)

func (*SubscriptionHandler) PostWebhook

func (h *SubscriptionHandler) PostWebhook(w http.ResponseWriter, r *http.Request)

func (*SubscriptionHandler) RegisterRoutes

func (h *SubscriptionHandler) RegisterRoutes(router chi.Router)

type SummaryHandler

type SummaryHandler struct {
	// contains filtered or unexported fields
}

func NewSummaryHandler

func NewSummaryHandler(summaryService services.ISummaryService, userService services.IUserService, heartbeatsService services.IHeartbeatService, durationService services.IDurationService, aliasService services.IAliasService) *SummaryHandler

func (*SummaryHandler) GetIndex

func (h *SummaryHandler) GetIndex(w http.ResponseWriter, r *http.Request)

func (*SummaryHandler) RegisterRoutes

func (h *SummaryHandler) RegisterRoutes(router chi.Router)

type WakapiMockOIDCUser

type WakapiMockOIDCUser struct {
	mockoidc.MockUser
	CustomClaimName  string
	CustomClaimValue string
}

WakapiMockOIDCUser implements mockoidc.User interface with custom claims

func (*WakapiMockOIDCUser) Claims

func (u *WakapiMockOIDCUser) Claims(scope []string, claims *mockoidc.IDTokenClaims) (jwt.Claims, error)

Directories

Path Synopsis
compat

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL