controllers

package
v0.0.0-...-f3fdc4c Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SecretKey = "314221943871221"

Variables

This section is empty.

Functions

func AuthUser

func AuthUser(c *fiber.Ctx) error

CREATE

func CreateItem

func CreateItem(c *fiber.Ctx) error

func CreateSubitem

func CreateSubitem(c *fiber.Ctx) error

func DeleteItem

func DeleteItem(c *fiber.Ctx) error

func DeleteSubitem

func DeleteSubitem(c *fiber.Ctx) error

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

func GetAllForms

func GetAllForms(c *fiber.Ctx) error

func GetFormByID

func GetFormByID(c *fiber.Ctx) error

func GetFormByStudent

func GetFormByStudent(c *fiber.Ctx) error

func GetFormByTeacher

func GetFormByTeacher(c *fiber.Ctx) error

func GetItemByID

func GetItemByID(c *fiber.Ctx) error

func GetItems

func GetItems(c *fiber.Ctx) error

func GetItemsByName

func GetItemsByName(c *fiber.Ctx) error

func GetSubitemByID

func GetSubitemByID(c *fiber.Ctx) error

func GetSubitems

func GetSubitems(c *fiber.Ctx) error

func GetSubitemsByName

func GetSubitemsByName(c *fiber.Ctx) error

func GetUserByID

func GetUserByID(c *fiber.Ctx) error

READ

func GetUserByName

func GetUserByName(c *fiber.Ctx) error

func GetUsers

func GetUsers(c *fiber.Ctx) error

func IsAuthorized

func IsAuthorized(cookie, SecretKey string) bool

func LoginUser

func LoginUser(c *fiber.Ctx) error

func PostForm

func PostForm(c *fiber.Ctx) error

func RegisterAuth

func RegisterAuth(c *fiber.Ctx) error

func RegisterUser

func RegisterUser(c *fiber.Ctx) error

func UpdateItem

func UpdateItem(c *fiber.Ctx) error

func UpdateSubitem

func UpdateSubitem(c *fiber.Ctx) error

func UpdateUser

func UpdateUser(c *fiber.Ctx) error

UPDATE

Types

This section is empty.

Jump to

Keyboard shortcuts

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