controllers

package
v0.0.0-...-352e712 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewAuthor

func CreateNewAuthor(w http.ResponseWriter, r *http.Request)

CreateNewAuthor calls the model to create one author in database

func CreateNewBook

func CreateNewBook(w http.ResponseWriter, r *http.Request)

CreateNewBook calls the model to create one book in database

func GetAuthor

func GetAuthor(w http.ResponseWriter, r *http.Request)

GetAuthor calls the model to bring one specific author

func GetAuthors

func GetAuthors(w http.ResponseWriter, r *http.Request)

GetAuthors calls the model to bring all the authors

func GetBook

func GetBook(w http.ResponseWriter, r *http.Request)

GetBook calls the model to bring one specific book

func GetBooks

func GetBooks(w http.ResponseWriter, r *http.Request)

GetBooks calls the model to bring all the books

Types

type Credentials

type Credentials struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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