adding

package
v0.0.0-...-aa5bd6b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAddBeerEndpoint

func MakeAddBeerEndpoint(s Service) func(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

MakeAddBeerEndpoint creates a handler for POST /beers requests

Types

type Service

type Service interface {
	AddBeer(...beers.Beer)
	AddSampleBeers()
}

Service provides beer adding operations

func NewService

func NewService(bR beers.Repository) Service

NewService creates an adding service with the necessary dependencies

Jump to

Keyboard shortcuts

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