Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorHandlers ¶
type AuthorHandlers struct {
// contains filtered or unexported fields
}
AuthorHandlers is the Authors Handlers
func NewAuthorsHandlers ¶
func NewAuthorsHandlers(authrSvc *authorsservice.AuthorService) *AuthorHandlers
NewAuthorsHandlers creates a new authors handlers
func (*AuthorHandlers) Create ¶
func (a *AuthorHandlers) Create(w http.ResponseWriter, r *http.Request)
Create creates a new author
func (*AuthorHandlers) Delete ¶
func (a *AuthorHandlers) Delete(w http.ResponseWriter, r *http.Request)
Delete deletes an author by id
func (*AuthorHandlers) List ¶
func (a *AuthorHandlers) List(w http.ResponseWriter, r *http.Request)
List returns all authors
Click to show internal directories.
Click to hide internal directories.