Documentation ¶
Index ¶
- func AllBooksHandler(ctx iris.Context)
- func CreateBook(book Book) (string, bool)
- func CreateBookHandler(ctx iris.Context)
- func DeleteBook(isbn string)
- func DeleteBookHandler(ctx iris.Context)
- func EchoHandler(ctx iris.Context)
- func GetBookHandler(ctx iris.Context)
- func HelloHandler(ctx iris.Context)
- func UpdateBook(isbn string, book Book) bool
- func UpdateBookHandler(ctx iris.Context)
- type Book
- type Hello
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllBooksHandler ¶
AllBooksHandler to be used as Handler for Book API
func CreateBook ¶
CreateBook creates a new Book if it does not exist
func CreateBookHandler ¶
CreateBookHandler to be used as Handler for Book API
func DeleteBookHandler ¶
DeleteBookHandler to be used as Handler for Book API
func EchoHandler ¶
EchoHandler to be used as Handler for ECHO API
func GetBookHandler ¶
GetBookHandler to be used as Handler for Book API
func HelloHandler ¶
HelloHandler to be used as Handler for Hello API
func UpdateBookHandler ¶
UpdateBookHandler to be used as Handler for Book API
Types ¶
Click to show internal directories.
Click to hide internal directories.