Documentation
¶
Index ¶
- func NewPostgresTaskRepository(db *sql.DB) repositories.TaskRepository
- type PostgresTaskRepository
- func (r *PostgresTaskRepository) Add(ctx context.Context, task entities.Task) (*entities.Task, error)
- func (r *PostgresTaskRepository) Delete(ctx context.Context, id string) error
- func (r *PostgresTaskRepository) GetAll(ctx context.Context, filters *dto.TaskFilters) ([]entities.Task, error)
- func (r *PostgresTaskRepository) GetByID(ctx context.Context, id string) (*entities.Task, error)
- func (r *PostgresTaskRepository) Update(ctx context.Context, task entities.Task) (*entities.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresTaskRepository ¶
func NewPostgresTaskRepository(db *sql.DB) repositories.TaskRepository
Types ¶
type PostgresTaskRepository ¶
type PostgresTaskRepository struct {
// contains filtered or unexported fields
}
func (*PostgresTaskRepository) Delete ¶
func (r *PostgresTaskRepository) Delete(ctx context.Context, id string) error
func (*PostgresTaskRepository) GetAll ¶
func (r *PostgresTaskRepository) GetAll(ctx context.Context, filters *dto.TaskFilters) ([]entities.Task, error)
Click to show internal directories.
Click to hide internal directories.