handlers

package
v0.0.0-...-1cb7732 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookStore

type BookStore struct {
	// contains filtered or unexported fields
}

BookStore should store and retrieve books

func (*BookStore) Create

func (store *BookStore) Create(w http.ResponseWriter, r *http.Request)

Create creates a new book

func (*BookStore) Delete

func (store *BookStore) Delete(w http.ResponseWriter, r *http.Request)

Delete should delete a book

func (*BookStore) Get

func (store *BookStore) Get(w http.ResponseWriter, r *http.Request)

Get returns a book

func (*BookStore) GetAll

func (store *BookStore) GetAll(w http.ResponseWriter, r *http.Request)

GetAll returns all the books

func (*BookStore) Init

func (store *BookStore) Init()

Init initializes the BookStore

func (*BookStore) Update

func (store *BookStore) Update(w http.ResponseWriter, r *http.Request)

Update updates an existing book

Jump to

Keyboard shortcuts

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