Documentation ¶
Index ¶
- type MongoRecipeRepository
- func (repo *MongoRecipeRepository) AddRecipe(ctx context.Context, recipe *core.Recipe) error
- func (repo *MongoRecipeRepository) DeleteRecipe(ctx context.Context, recipe core.Recipe) error
- func (repo *MongoRecipeRepository) GetRecipeByID(ctx context.Context, id string) (core.Recipe, error)
- func (repo *MongoRecipeRepository) GetRecipes(ctx context.Context) ([]core.Recipe, error)
- func (repo *MongoRecipeRepository) UpdateRecipe(ctx context.Context, recipe core.Recipe) error
- type MongoSourceRepository
- func (repo *MongoSourceRepository) AddSource(ctx context.Context, source *core.Source) error
- func (repo *MongoSourceRepository) DeleteSource(ctx context.Context, source core.Source) error
- func (repo *MongoSourceRepository) GetSourceByID(ctx context.Context, id string) (core.Source, error)
- func (repo *MongoSourceRepository) GetSources(ctx context.Context) ([]core.Source, error)
- func (repo *MongoSourceRepository) UpdateSource(ctx context.Context, source core.Source) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoRecipeRepository ¶
type MongoRecipeRepository struct {
// contains filtered or unexported fields
}
func NewMongoRecipeRepository ¶
func NewMongoRecipeRepository(recipesCollection *mongo.Collection) *MongoRecipeRepository
func (*MongoRecipeRepository) DeleteRecipe ¶
func (*MongoRecipeRepository) GetRecipeByID ¶
func (*MongoRecipeRepository) GetRecipes ¶
func (*MongoRecipeRepository) UpdateRecipe ¶
type MongoSourceRepository ¶
type MongoSourceRepository struct {
// contains filtered or unexported fields
}
func NewMongoSourceRepository ¶
func NewMongoSourceRepository(sourcesCollection *mongo.Collection) *MongoSourceRepository
func (*MongoSourceRepository) DeleteSource ¶
func (*MongoSourceRepository) GetSourceByID ¶
func (*MongoSourceRepository) GetSources ¶
func (*MongoSourceRepository) UpdateSource ¶
Click to show internal directories.
Click to hide internal directories.