endpoints

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAlive

func HandleAlive() system.AliveHandlerFunc

HandleAlive creates and /api/alive endpoint handler via a closure.

func HandleCSV

func HandleCSV(logger *zap.SugaredLogger, bookStore storage.BookStore, statusStore storage.StatusStore) api.BookCSVHandlerFunc

HandleCSV creates a POST /api/csv endpoint handler via a closure. It creates a CSV file for all Book data and current Status data.

func HandleCheckin

func HandleCheckin(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookCheckinHandlerFunc

HandleCheckin creates a POST /api/checkin endpoint handler via a closure. It can update the Status data for ISBNs.

func HandleCheckout

func HandleCheckout(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookCheckoutHandlerFunc

HandleCheckout creates a POST /api/checkout endpoint handler via a closure. It can update the Status data for ISBNs.

func HandleDelete

func HandleDelete(logger *zap.SugaredLogger, bookStore storage.BookStore, statusStore storage.StatusStore) api.BookDeleteHandlerFunc

HandleDelete creates a DELETE /api/books endpoint handler via a closure. It can delete books from the library.

func HandleHistory

func HandleHistory(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookHistoryHandlerFunc

HandleHistory creates a POST /api/history endpoint handler via a closure. It can perform read operations on Status data.

func HandleRead

func HandleRead(logger *zap.SugaredLogger, bookStore storage.BookStore) api.BookReadHandlerFunc

HandleRead creates a POST /api/books endpoint handler via a closure. It can perform read operations on Book data.

func HandleStatus

func HandleStatus(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookStatusHandlerFunc

HandleStatus creates a POST /api/status endpoint handler via a closure. It can perform read operations on Status the latest data.

func HandleWrite

func HandleWrite(logger *zap.SugaredLogger, bookStore storage.BookStore, statusStore storage.StatusStore) api.BookWriteHandlerFunc

HandleWrite creates and POST /api/{operation}/books endpoint handler via a closure. It can perform write operations on Book data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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