adding

package
Version: v0.0.0-...-b3f917f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 4 Imported by: 0

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