handlers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 10 Imported by: 0

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

List returns all authors

Jump to

Keyboard shortcuts

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