Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
CreateRecipe(ctx context.Context, args db.CreateRecipeParams) (db.Recipe, error)
GetRecipeById(ctx context.Context, id int32) (db.Recipe, error)
ListRecipes(ctx context.Context, params db.ListRecipesParams) ([]db.Recipe, error)
UpdateRecipe(ctx context.Context, params db.UpdateRecipeParams) (db.Recipe, error)
}
func NewRepostiory ¶
func NewRepostiory(store db.Store, logger *logrus.Logger) Repository
Click to show internal directories.
Click to hide internal directories.