Documentation ¶
Index ¶
- type CategoryRepository
- type CategoryRepositoryImpl
- func (repository *CategoryRepositoryImpl) Delete(ctx context.Context, tx *sql.Tx, category domain.Category)
- func (repository *CategoryRepositoryImpl) FindAll(ctx context.Context, tx *sql.Tx) []domain.Category
- func (repository *CategoryRepositoryImpl) FindByID(ctx context.Context, tx *sql.Tx, categoryId int) (domain.Category, error)
- func (repository *CategoryRepositoryImpl) Save(ctx context.Context, tx *sql.Tx, category domain.Category) domain.Category
- func (repository *CategoryRepositoryImpl) Update(ctx context.Context, tx *sql.Tx, category domain.Category) domain.Category
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepository ¶
type CategoryRepository interface { Save(ctx context.Context, tx *sql.Tx, category domain.Category) domain.Category Update(ctx context.Context, tx *sql.Tx, category domain.Category) domain.Category Delete(ctx context.Context, tx *sql.Tx, category domain.Category) FindByID(ctx context.Context, tx *sql.Tx, categoryId int) (domain.Category, error) FindAll(ctx context.Context, tx *sql.Tx) []domain.Category }
func NewCategoryRepository ¶
func NewCategoryRepository() CategoryRepository
Click to show internal directories.
Click to hide internal directories.