Documentation ¶
Index ¶
- func ConnectDB() *sql.DB
- func ConnectNeo(cfg config.AppConfig) (neo4j.Driver, error)
- type Elastic
- func (es *Elastic) AddRecipe(ctx context.Context, recipe api.Recipe) (string, error)
- func (es *Elastic) DeleteRecipe(id string) error
- func (es *Elastic) GetRecipeById(id string) (map[string]interface{}, error)
- func (es *Elastic) RecipeAll() ([]map[string]interface{}, error)
- func (es *Elastic) RecipeWithIngredient(value []string) ([]map[string]interface{}, error)
- func (es *Elastic) UpdateRecipe(ctx context.Context, recipe map[string]interface{}, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Elastic ¶
type Elastic struct {
// contains filtered or unexported fields
}
func ConnectElastic ¶
func (*Elastic) DeleteRecipe ¶
func (*Elastic) GetRecipeById ¶
func (*Elastic) RecipeWithIngredient ¶
RecipeWithIngredient return the title
Click to show internal directories.
Click to hide internal directories.