handler

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: GPL-3.0 Imports: 28 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(h *handler) (*echo.Echo, error)

func NewHandler

func NewHandler(optFuncs ...func(*handlerOpts)) (*handler, error)

func WithBlobStore

func WithBlobStore(fs *blobstore.Store) func(*handlerOpts)

func WithConfig

func WithConfig(config *config.Server) func(*handlerOpts)

func WithEmail

func WithEmail(email *email.Client) func(*handlerOpts)

func WithFileSystem

func WithFileSystem(fileSystem *embed.FS) func(*handlerOpts)

func WithKVStore

func WithKVStore(kvStore *kvstore.KVStore) func(*handlerOpts)

func WithRepo

func WithRepo(repo *repo.Repo) func(*handlerOpts)

Types

This section is empty.

Jump to

Keyboard shortcuts

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