web

package
v0.0.0-...-dc45d32 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(template *embeded.Template) func(error, echo.Context)

func PageRenderer

func PageRenderer(page string) echo.HandlerFunc

Types

type Handler

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

func New

func New(
	domain endpoints.Domain,
	sess *scs.SessionManager,
	users *user.Service,
	recaptcha *recaptcha.Service,
) *Handler

func (*Handler) SendVerifyEmail

func (h *Handler) SendVerifyEmail(c echo.Context) error

func (*Handler) Signin

func (h *Handler) Signin(c echo.Context) error

func (*Handler) Signout

func (h *Handler) Signout(c echo.Context) error

func (*Handler) Signup

func (h *Handler) Signup(c echo.Context) error

func (*Handler) VerifyEmail

func (h *Handler) VerifyEmail(c echo.Context) error

type SessionData

type SessionData struct {
	Email       string
	Name        string
	Handle      string
	InternalUID string
	ErrMsg      string
	CSRFToken   string
	Recaptcha   bool
}

func (SessionData) SignedIn

func (sd SessionData) SignedIn() bool

Jump to

Keyboard shortcuts

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