handler

package
v0.0.0-...-90e5bb7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleUser role = iota + 1
	RoleStaff
	RoleAdmin
)

Variables

View Source
var (
	ErrUserNotLoggedIn = errors.New("user is not logged in")
)

Functions

func New

func New(opts *Opts) (*echo.Echo, error)

func SanitizeEmail

func SanitizeEmail(email string) string

Types

type Opts

type Opts struct {
	Config   *config.Server
	Kv       *sqlite.KV
	Repo     *repo.Repo
	Email    *email.Client
	Fs       *storage.Client
	StaticFS *embed.FS
}

Jump to

Keyboard shortcuts

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