adapters

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (p PgTaskRepository) DeleteTask(ctx context.Context, taskId string) (*app.Task, error)

func (PgTaskRepository) GetAllTask added in v1.1.0

func (p PgTaskRepository) GetAllTask(ctx context.Context) ([]*app.Task, error)

func (PgTaskRepository) GetTaskById added in v1.1.0

func (p PgTaskRepository) GetTaskById(ctx context.Context, taskId string) (*app.Task, error)

func (PgTaskRepository) UpdateTask added in v1.1.0

func (p PgTaskRepository) UpdateTask(ctx context.Context, taskId string, body *app.UpdateTaskDto) (*app.Task, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL