service

package
v0.0.0-...-1afb120 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 6 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 interface {
	Create(ctx context.Context, dto recipe.CreateRecipeDTO) (string, error)
	Update(ctx context.Context, dto recipe.UpdateRecipeDTO) error
	GetByID(ctx context.Context, id string) (recipe.Recipe, error)
	GetAllByUser(ctx context.Context, userID string) ([]recipe.Recipe, error)
	GetAll(ctx context.Context, start int64, limit int64) ([]recipe.Recipe, error)
	FindByIngredients(ctx context.Context, ingredientIDs []string) ([]recipe.Recipe, error)
}

func NewService

func NewService(storage storage.Storage) Service

Jump to

Keyboard shortcuts

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