adapter

package
v0.0.0-...-e82a045 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctrl *Controller) *echo.Echo

Types

type Controller

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

func NewController

func NewController(
	createIngredientInputPort usecase.CreateIngredientInputPort,
	listIngredientsInputPort usecase.ListIngredientsInputPort,
	deleteIngredientInputPort usecase.DeleteIngredientInputPort,
) *Controller

func (*Controller) CreateIngredient

func (ctr *Controller) CreateIngredient(c echo.Context) error

func (*Controller) DeleteIngredient

func (ctr *Controller) DeleteIngredient(c echo.Context) error

func (*Controller) ListIngredients

func (ctr *Controller) ListIngredients(c echo.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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