recipeclient

package module
v0.0.0-...-7361424 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type RecipeAPIClient

type RecipeAPIClient struct {
	BaseURL    string
	HTTPClient HttpClient
}

RecipeAPIClient interacts with the Recipe microservice.

func NewRecipeAPIClient

func NewRecipeAPIClient(baseURL string, httpClient HttpClient) (*RecipeAPIClient, error)

NewRecipeAPIClient initializes and returns a RecipeAPIClient instance.

func (*RecipeAPIClient) GetAllRecipes

func (c *RecipeAPIClient) GetAllRecipes() ([]m.RecipeDTO, error)

GetAllRecipes fetches all recipes from the recipe service.

func (*RecipeAPIClient) RecipeExists

func (c *RecipeAPIClient) RecipeExists(recipeID string) (bool, error)

RecipeExists checks if a recipe exists by its ID.

Jump to

Keyboard shortcuts

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