authors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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 Service

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

Service is the Authors Service Layer

func NewService

func NewService(queries database.Querier) *Service

NewService creates a new authors service

func (*Service) Create

func (s *Service) Create(w http.ResponseWriter, r *http.Request)

Create creates a new author

func (*Service) Delete

func (s *Service) Delete(w http.ResponseWriter, r *http.Request)

Delete deletes an author by id

func (*Service) FullUpdate

func (s *Service) FullUpdate(w http.ResponseWriter, r *http.Request)

FullUpdate updates an author by id

func (*Service) Get

func (s *Service) Get(w http.ResponseWriter, r *http.Request)

Get returns an author by id

func (*Service) List

func (s *Service) List(w http.ResponseWriter, _ *http.Request)

List returns all authors

Jump to

Keyboard shortcuts

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