Documentation ¶
Index ¶
- func HtmxRedirect(c echo.Context, path string) error
- func HtmxRender(c echo.Context, htmxTemplate TemplRenderFunc, nonHtmxTemplate TemplRenderFunc) templ.Component
- func IsHtmxRequest(c echo.Context) bool
- func Render(ctx echo.Context, status int, t templ.Component) error
- type Auth
- func (a *Auth) AuthGuardMiddleware() echo.MiddlewareFunc
- func (a *Auth) LoadAuthContextFromCookieMiddleware(app core.App) echo.MiddlewareFunc
- func (a *Auth) Login(e *core.ServeEvent, c echo.Context, username string, password string) error
- func (a *Auth) Register(e *core.ServeEvent, c echo.Context, username string, password string, ...) error
- func (a *Auth) RegisterLoginRoutes(e *core.ServeEvent, group echo.Group)
- func (a *Auth) RegisterRegisterRoutes(e *core.ServeEvent, group echo.Group)
- type Config
- type Login
- type LoginForm
- type LoginFormValue
- type Option
- type Register
- type RegisterForm
- type RegisterFormValue
- type TemplRenderFunc
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HtmxRedirect ¶
func HtmxRender ¶
func HtmxRender(c echo.Context, htmxTemplate TemplRenderFunc, nonHtmxTemplate TemplRenderFunc) templ.Component
func IsHtmxRequest ¶
func IsHtmxRequest(c echo.Context) bool
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) AuthGuardMiddleware ¶
func (a *Auth) AuthGuardMiddleware() echo.MiddlewareFunc
func (*Auth) LoadAuthContextFromCookieMiddleware ¶
func (*Auth) RegisterLoginRoutes ¶
func (a *Auth) RegisterLoginRoutes(e *core.ServeEvent, group echo.Group)
func (*Auth) RegisterRegisterRoutes ¶
func (a *Auth) RegisterRegisterRoutes(e *core.ServeEvent, group echo.Group)
type LoginFormValue ¶
type LoginFormValue struct {
// contains filtered or unexported fields
}
func (LoginFormValue) Validate ¶
func (lfv LoginFormValue) Validate() error
type RegisterForm ¶
type RegisterFormValue ¶
type RegisterFormValue struct {
// contains filtered or unexported fields
}
func (RegisterFormValue) Validate ¶
func (lfv RegisterFormValue) Validate() error
type TemplRenderFunc ¶
Click to show internal directories.
Click to hide internal directories.