handlers

package
v0.0.0-...-c3b005f Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBook

func CreateBook(c *fiber.Ctx) error

func DeleteOneBook

func DeleteOneBook(c *fiber.Ctx) error

func FindAllBooks

func FindAllBooks(c *fiber.Ctx) error

func HealthCheck

func HealthCheck(c *fiber.Ctx) error

func UpdateOneBook

func UpdateOneBook(c *fiber.Ctx) error

Types

type Book

type Book struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	IsAvailable bool   `json:"isAvailable"`
}

type UpdateBook

type UpdateBook struct {
	Name          string    `json:"name"`
	Description   string    `json:"description"`
	IsAvailable   bool      `json:"isAvailable"`
	Publisher     string    `json:"publisher"`
	Country       string    `json:"country"`
	Category      string    `json:"category"`
	PublishedDate time.Time `json:"publishedDate"`
	PageCount     int32     `json:"pageCount"`
}

Jump to

Keyboard shortcuts

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