handlers

package
v0.0.0-...-4d10510 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright 2023 wanderer <a_mirre at utb dot cz> SPDX-License-Identifier: AGPL-3.0-only

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession        = errors.New("No session found, please log in")
	ErrSessionExpired   = errors.New("Session expired, log in again")
	ErrValidationFailed = errors.New("Check your input data")
)

Functions

func CreateUser

func CreateUser() echo.HandlerFunc

func DeleteUser

func DeleteUser() echo.HandlerFunc

DeleteUser handles user deletion POST requests.

func DeleteUserConfirmation

func DeleteUserConfirmation() echo.HandlerFunc

DeleteUserConfirmation displays user deletion confirmation confirmation page.

func EditUser

func EditUser() echo.HandlerFunc

func GetSearchHIBP

func GetSearchHIBP() echo.HandlerFunc

func Healthz

func Healthz() echo.HandlerFunc

func Home

func Home(client *ent.Client) echo.HandlerFunc

func Index

func Index() echo.HandlerFunc

func InitHandlers

func InitHandlers(s *settings.Settings)

func InitialPasswordChange

func InitialPasswordChange() echo.HandlerFunc

func InitialPasswordChangePost

func InitialPasswordChangePost() echo.HandlerFunc

func Logout

func Logout() echo.HandlerFunc

func ManageAPIKeys

func ManageAPIKeys() echo.HandlerFunc

func ManageUsers

func ManageUsers() echo.HandlerFunc

func MiddlewareCache

func MiddlewareCache(next echo.HandlerFunc) echo.HandlerFunc

func MiddlewareSession

func MiddlewareSession(next echo.HandlerFunc) echo.HandlerFunc

func SearchHIBP

func SearchHIBP() echo.HandlerFunc

func SetDBClient

func SetDBClient(client *ent.Client)

func Signin

func Signin() echo.HandlerFunc

func SigninPost

func SigninPost(client *ent.Client) echo.HandlerFunc

func Signup

func Signup() echo.HandlerFunc

func SignupPost

func SignupPost(client *ent.Client) echo.HandlerFunc

func UpdateUser

func UpdateUser() echo.HandlerFunc

func ViewHIBP

func ViewHIBP() echo.HandlerFunc

func ViewUser

func ViewUser() echo.HandlerFunc

func WrapMiddlewareCompress

func WrapMiddlewareCompress() (echo.MiddlewareFunc, error)

Types

type Icon

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

func NewIcon

func NewIcon(data string) *Icon

func (*Icon) Img

func (i *Icon) Img() string

type Iconier

type Iconier interface {
	Img() string
}

Jump to

Keyboard shortcuts

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