controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

autokueng-api - Open-Source Website

Copyright (C) 2021 Jan Lauber

Index

Constants

This section is empty.

Variables

View Source
var (
	CaptchaSecret string
	SMTP_Username string
	SMTP_Password string
	SMTP_Host     string
	SMTP_Port     string
	SMTP_From     string
	SMTP_To       string
	SMTP_SSL      bool
)
View Source
var SecretKey string
View Source
var UserAdmin bool

Functions

func Auth

func Auth(c *fiber.Ctx) error

func CheckAuth

func CheckAuth(c *fiber.Ctx) (int64, error)

func CheckRecaptcha

func CheckRecaptcha(response string) error

func CreateGalleryImage

func CreateGalleryImage(c *fiber.Ctx) error
func CreateLink(c *fiber.Ctx) error

func CreateMember

func CreateMember(c *fiber.Ctx) error

func CreateNews

func CreateNews(c *fiber.Ctx) error

func CreateService

func CreateService(c *fiber.Ctx) error

func DeleteAllNews

func DeleteAllNews(c *fiber.Ctx) error

func DeleteGalleryImage

func DeleteGalleryImage(c *fiber.Ctx) error
func DeleteLink(c *fiber.Ctx) error

func DeleteMember

func DeleteMember(c *fiber.Ctx) error

func DeleteService

func DeleteService(c *fiber.Ctx) error

func GetGalleryImage

func GetGalleryImage(c *fiber.Ctx) error

func GetGalleryImages

func GetGalleryImages(c *fiber.Ctx) error
func GetLink(c *fiber.Ctx) error
func GetLinks(c *fiber.Ctx) error

func GetMember

func GetMember(c *fiber.Ctx) error

func GetMembers

func GetMembers(c *fiber.Ctx) error

func GetNews

func GetNews(c *fiber.Ctx) error

func GetService

func GetService(c *fiber.Ctx) error

func GetServices

func GetServices(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

func ResetPassword

func ResetPassword(c *fiber.Ctx) error

func SendContactform

func SendContactform(c *fiber.Ctx) error

func UpdateGalleryImage

func UpdateGalleryImage(c *fiber.Ctx) error
func UpdateLink(c *fiber.Ctx) error

func UpdateMember

func UpdateMember(c *fiber.Ctx) error

func UpdateNews

func UpdateNews(c *fiber.Ctx) error

func UpdateService

func UpdateService(c *fiber.Ctx) error

Types

type ContactRequest

type ContactRequest struct {
	Firstname         string `json:"firstname"`
	Lastname          string `json:"lastname"`
	Email             string `json:"email"`
	Phone             string `json:"phone"`
	Subject           string `json:"subject"`
	Message           string `json:"message"`
	RecaptchaResponse string `json:"g-recaptcha-response"`
}

Jump to

Keyboard shortcuts

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