Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecipeConfiguration ¶
type RecipeConfiguration func(rs *RecipeService) error
func WithMemoryRepository ¶
func WithMemoryRepository() RecipeConfiguration
func WithMongoRepository ¶
func WithMongoRepository(client *mongo.Client, getEnv func(string) string) RecipeConfiguration
type RecipeService ¶
type RecipeService struct {
// contains filtered or unexported fields
}
func NewRecipeService ¶
func NewRecipeService(cfgs ...RecipeConfiguration) (RecipeService, error)
func (RecipeService) CreateRecipe ¶
func (rs RecipeService) CreateRecipe(ctx context.Context, name string, description string, cuisine domain.CuisineType) (recipe.Recipe, error)
Click to show internal directories.
Click to hide internal directories.