Versions in this module Expand all Collapse all v0 v0.1.4 May 23, 2025 v0.1.3 May 23, 2025 Changes in this version + const CookieExpiryMinutes + const SignupEmailMaxValue + const SignupEmailMinValue + const SignupFirstNameMaxValue + const SignupFirstNameMinValue + const SignupLastNameMaxValue + const SignupLastNameMinValue + const SignupPasswordMaxValue + const SignupPasswordMinValue + var ErrNoCurrentUser = errors.New("no current user found") + type AuthHandler struct + func NewAuthHandler(logger logging.Logger, opts ...AuthHandlerOption) *AuthHandler + func (h *AuthHandler) Register(e *echo.Echo) + func (h *AuthHandler) Validate() error + type AuthHandlerOption func(*AuthHandler) + func WithUserService(svc user.Service) AuthHandlerOption + type Base struct + Logger logging.Logger + func NewBase(opts ...Option) Base + func (b *Base) LogError(msg string, err error, fields ...any) + func (b *Base) Validate() error + func (b *Base) WrapResponseError(err error, msg string) error + type FormHandler struct + func NewFormHandler(logger logging.Logger, formService form.Service, formClient form.Client, ...) (*FormHandler, error) + func (h *FormHandler) Register(e *echo.Echo) + type Handler interface + Register func(e *echo.Echo) + type Option func(*Base) + func WithLogger(logger logging.Logger) Option + type SignupValidation struct + EmailMax int + EmailMin int + FirstNameMax int + FirstNameMin int + LastNameMax int + LastNameMin int + PasswordMax int + PasswordMin int + type StaticHandler struct + func NewStaticHandler(logger logging.Logger, cfg *config.Config) *StaticHandler + func (h *StaticHandler) HandleStatic(c echo.Context) error + func (h *StaticHandler) Register(e *echo.Echo) + type VersionHandler struct + func NewVersionHandler(info VersionInfo, base Base) *VersionHandler + func (h *VersionHandler) GetVersion(c echo.Context) error + func (h *VersionHandler) Register(e *echo.Echo) + type VersionInfo struct + BuildTime string + GitCommit string + GoVersion string + Version string + type WebHandler struct + func NewWebHandler(logger logging.Logger, renderer *view.Renderer, opts ...WebHandlerOption) (*WebHandler, error) + func (h *WebHandler) Register(e *echo.Echo) + func (h *WebHandler) Validate() error + type WebHandlerOption func(*WebHandler) + func WithConfig(cfg *config.Config) WebHandlerOption + func WithMiddlewareManager(manager *amw.Manager) WebHandlerOption + func WithRenderer(renderer *view.Renderer) WebHandlerOption