Documentation
¶
Index ¶
- func Router(revision string, db dusk.Store, fs *file.Service) chi.Router
- type Handler
- func (s *Handler) AddAuthor(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) AddBook(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) AddBookCover(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) AddBookFormat(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) AddTag(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) DeleteAuthor(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) DeleteBook(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) DeleteTag(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) GetAllAuthors(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) GetAllBooks(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) GetAllTags(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) GetAuthor(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) GetBook(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) GetTag(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) UpdateAuthor(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) UpdateBook(rw http.ResponseWriter, r *http.Request)
- func (s *Handler) UpdateTag(rw http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) AddBookCover ¶
func (s *Handler) AddBookCover(rw http.ResponseWriter, r *http.Request)
func (*Handler) AddBookFormat ¶
func (s *Handler) AddBookFormat(rw http.ResponseWriter, r *http.Request)
TODO should adding format change metadata?
func (*Handler) DeleteAuthor ¶
func (s *Handler) DeleteAuthor(rw http.ResponseWriter, r *http.Request)
func (*Handler) DeleteBook ¶
func (s *Handler) DeleteBook(rw http.ResponseWriter, r *http.Request)
func (*Handler) GetAllAuthors ¶
func (s *Handler) GetAllAuthors(rw http.ResponseWriter, r *http.Request)
func (*Handler) GetAllBooks ¶
func (s *Handler) GetAllBooks(rw http.ResponseWriter, r *http.Request)
func (*Handler) GetAllTags ¶
func (s *Handler) GetAllTags(rw http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAuthor ¶
func (s *Handler) UpdateAuthor(rw http.ResponseWriter, r *http.Request)
func (*Handler) UpdateBook ¶
func (s *Handler) UpdateBook(rw http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.