api

package
v0.0.0-...-f377bbc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(revision string, db dusk.Store, fs *file.Service) chi.Router

Types

type Handler

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

func (*Handler) AddAuthor

func (s *Handler) AddAuthor(rw http.ResponseWriter, r *http.Request)

func (*Handler) AddBook

func (s *Handler) AddBook(rw http.ResponseWriter, r *http.Request)

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) AddTag

func (s *Handler) AddTag(rw http.ResponseWriter, r *http.Request)

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) DeleteTag

func (s *Handler) DeleteTag(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) GetAuthor

func (s *Handler) GetAuthor(rw http.ResponseWriter, r *http.Request)

func (*Handler) GetBook

func (s *Handler) GetBook(rw http.ResponseWriter, r *http.Request)

func (*Handler) GetTag

func (s *Handler) GetTag(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)

func (*Handler) UpdateTag

func (s *Handler) UpdateTag(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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