Documentation ¶
Index ¶
- type PgTaskRepository
- func (p PgTaskRepository) CreateTask(ctx context.Context, body *app.CreateTaskDto) (*app.Task, error)
- func (p PgTaskRepository) DeleteTask(ctx context.Context, taskId string) (*app.Task, error)
- func (p PgTaskRepository) GetAllTask(ctx context.Context) ([]*app.Task, error)
- func (p PgTaskRepository) GetTaskById(ctx context.Context, taskId string) (*app.Task, error)
- func (p PgTaskRepository) UpdateTask(ctx context.Context, taskId string, body *app.UpdateTaskDto) (*app.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgTaskRepository ¶
type PgTaskRepository struct {
// contains filtered or unexported fields
}
func NewPgTaskRepository ¶
func NewPgTaskRepository(db *pgxpool.Pool) *PgTaskRepository
func (PgTaskRepository) CreateTask ¶ added in v1.1.0
func (p PgTaskRepository) CreateTask(ctx context.Context, body *app.CreateTaskDto) (*app.Task, error)
func (PgTaskRepository) DeleteTask ¶ added in v1.1.0
func (PgTaskRepository) GetAllTask ¶ added in v1.1.0
func (PgTaskRepository) GetTaskById ¶ added in v1.1.0
func (PgTaskRepository) UpdateTask ¶ added in v1.1.0
func (p PgTaskRepository) UpdateTask(ctx context.Context, taskId string, body *app.UpdateTaskDto) (*app.Task, error)
Click to show internal directories.
Click to hide internal directories.