Documentation ¶
Index ¶
- func HandleAlive() system.AliveHandlerFunc
- func HandleCSV(logger *zap.SugaredLogger, bookStore storage.BookStore, ...) api.BookCSVHandlerFunc
- func HandleCheckin(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookCheckinHandlerFunc
- func HandleCheckout(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookCheckoutHandlerFunc
- func HandleDelete(logger *zap.SugaredLogger, bookStore storage.BookStore, ...) api.BookDeleteHandlerFunc
- func HandleHistory(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookHistoryHandlerFunc
- func HandleRead(logger *zap.SugaredLogger, bookStore storage.BookStore) api.BookReadHandlerFunc
- func HandleStatus(logger *zap.SugaredLogger, statusStore storage.StatusStore) api.BookStatusHandlerFunc
- func HandleWrite(logger *zap.SugaredLogger, bookStore storage.BookStore, ...) api.BookWriteHandlerFunc
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.