Versions in this module Expand all Collapse all v1 v1.1.0 May 25, 2024 Changes in this version + type MockIngredientModelInterface struct + func NewMockIngredientModelInterface(ctrl *gomock.Controller) *MockIngredientModelInterface + func (m *MockIngredientModelInterface) EXPECT() *MockIngredientModelInterfaceMockRecorder + func (m *MockIngredientModelInterface) GetByRecipeID(tx transactions.Transaction, recipeID int) ([]*models.FullIngredient, error) + func (m *MockIngredientModelInterface) InsertIfNotExists(tx transactions.Transaction, name string) (int, error) + type MockIngredientModelInterfaceMockRecorder struct + func (mr *MockIngredientModelInterfaceMockRecorder) GetByRecipeID(tx, recipeID interface{}) *gomock.Call + func (mr *MockIngredientModelInterfaceMockRecorder) InsertIfNotExists(tx, name interface{}) *gomock.Call + type MockRecipeIngredientModelInterface struct + func NewMockRecipeIngredientModelInterface(ctrl *gomock.Controller) *MockRecipeIngredientModelInterface + func (m *MockRecipeIngredientModelInterface) Associate(tx transactions.Transaction, recipeID, ingredientID int, quantity float64, ...) error + func (m *MockRecipeIngredientModelInterface) DissociateNotInList(tx transactions.Transaction, recipeID int, ...) error + func (m *MockRecipeIngredientModelInterface) EXPECT() *MockRecipeIngredientModelInterfaceMockRecorder + type MockRecipeIngredientModelInterfaceMockRecorder struct + func (mr *MockRecipeIngredientModelInterfaceMockRecorder) Associate(tx, recipeID, ingredientID, quantity, unit interface{}) *gomock.Call + func (mr *MockRecipeIngredientModelInterfaceMockRecorder) DissociateNotInList(tx, recipeID, recipeIngredients interface{}) *gomock.Call + type MockRecipeModelInterface struct + IngredientModel *MockIngredientModelInterface + RecipeIngredientModel *MockRecipeIngredientModelInterface + RecipeTagModel *MockRecipeTagModelInterface + TagModel *MockTagModelInterface + func NewMockRecipeModelInterface(ctrl *gomock.Controller) *MockRecipeModelInterface + func (m *MockRecipeModelInterface) Delete(id int) error + func (m *MockRecipeModelInterface) EXPECT() *MockRecipeModelInterfaceMockRecorder + func (m *MockRecipeModelInterface) Get(id int) (*models.Recipe, error) + func (m *MockRecipeModelInterface) GetAll() ([]*models.Recipe, error) + func (m *MockRecipeModelInterface) GetWithTx(tx transactions.Transaction, id int) (*models.Recipe, error) + func (m *MockRecipeModelInterface) Insert(name, description, instructions, preparationTime, cookingTime string, ...) (int, error) + func (m *MockRecipeModelInterface) Ping() error + func (m *MockRecipeModelInterface) Update(recipe *models.Recipe) error + type MockRecipeModelInterfaceMockRecorder struct + func (mr *MockRecipeModelInterfaceMockRecorder) Delete(id interface{}) *gomock.Call + func (mr *MockRecipeModelInterfaceMockRecorder) Get(id interface{}) *gomock.Call + func (mr *MockRecipeModelInterfaceMockRecorder) GetAll() *gomock.Call + func (mr *MockRecipeModelInterfaceMockRecorder) GetWithTx(tx, id interface{}) *gomock.Call + func (mr *MockRecipeModelInterfaceMockRecorder) Insert(...) *gomock.Call + func (mr *MockRecipeModelInterfaceMockRecorder) Ping() *gomock.Call + func (mr *MockRecipeModelInterfaceMockRecorder) Update(recipe interface{}) *gomock.Call + type MockRecipeTagModelInterface struct + func NewMockRecipeTagModelInterface(ctrl *gomock.Controller) *MockRecipeTagModelInterface + func (m *MockRecipeTagModelInterface) Associate(tx transactions.Transaction, recipeID, tagID int) error + func (m *MockRecipeTagModelInterface) DissociateNotInList(tx transactions.Transaction, recipeID int, recipeTags []*models.Tag) error + func (m *MockRecipeTagModelInterface) EXPECT() *MockRecipeTagModelInterfaceMockRecorder + type MockRecipeTagModelInterfaceMockRecorder struct + func (mr *MockRecipeTagModelInterfaceMockRecorder) Associate(tx, recipeID, tagID interface{}) *gomock.Call + func (mr *MockRecipeTagModelInterfaceMockRecorder) DissociateNotInList(tx, recipeID, recipeTags interface{}) *gomock.Call + type MockTagModelInterface struct + func NewMockTagModelInterface(ctrl *gomock.Controller) *MockTagModelInterface + func (m *MockTagModelInterface) EXPECT() *MockTagModelInterfaceMockRecorder + func (m *MockTagModelInterface) GetByRecipeID(tx transactions.Transaction, recipeID int) ([]*models.Tag, error) + func (m *MockTagModelInterface) InsertIfNotExists(tx transactions.Transaction, name string) (int, error) + type MockTagModelInterfaceMockRecorder struct + func (mr *MockTagModelInterfaceMockRecorder) GetByRecipeID(tx, recipeID interface{}) *gomock.Call + func (mr *MockTagModelInterfaceMockRecorder) InsertIfNotExists(tx, name interface{}) *gomock.Call