postgres

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresTaskRepository

type PostgresTaskRepository struct {
	// contains filtered or unexported fields
}

PostgresTaskRepository is a postgres task repository.

func NewPostgresTaskRepository

func NewPostgresTaskRepository(ctx context.Context) (*PostgresTaskRepository, error)

NewPostgresTaskRepository creates a new instance of PostgresTaskRepository.

func (*PostgresTaskRepository) Create

func (r *PostgresTaskRepository) Create(ctx context.Context, task *entities.Task) error

Create adds a new task to the repository.

func (*PostgresTaskRepository) Delete

func (r *PostgresTaskRepository) Delete(ctx context.Context, id uuid.UUID) error

Delete removes a task from the repository.

func (*PostgresTaskRepository) FindAll

FindAll returns all tasks in the repository.

func (*PostgresTaskRepository) FindByID

FindByID returns the task with the specified ID.

func (*PostgresTaskRepository) Update

func (r *PostgresTaskRepository) Update(ctx context.Context, task *entities.Task) error

Update updates an existing task in the repository.

type PostgresTaskRunRepository added in v0.5.0

type PostgresTaskRunRepository struct {
	// contains filtered or unexported fields
}

func NewPostgresTaskRunRepository added in v0.5.0

func NewPostgresTaskRunRepository(ctx context.Context) (*PostgresTaskRunRepository, error)

func (*PostgresTaskRunRepository) Create added in v0.5.0

func (*PostgresTaskRunRepository) Delete added in v0.5.0

func (*PostgresTaskRunRepository) FindAll added in v0.5.0

func (*PostgresTaskRunRepository) FindByID added in v0.5.0

func (*PostgresTaskRunRepository) FindByTaskID added in v0.5.0

func (r *PostgresTaskRunRepository) FindByTaskID(ctx context.Context, taskID uuid.UUID) ([]*entities.TaskRun, error)

func (*PostgresTaskRunRepository) Update added in v0.5.0

type PostgresUserRepository added in v0.5.0

type PostgresUserRepository struct {
	// contains filtered or unexported fields
}

func NewPostgresUserRepository added in v0.5.0

func NewPostgresUserRepository(ctx context.Context) (*PostgresUserRepository, error)

func (*PostgresUserRepository) Create added in v0.5.0

func (r *PostgresUserRepository) Create(ctx context.Context, user *entities.User) error

func (*PostgresUserRepository) Delete added in v0.5.0

func (r *PostgresUserRepository) Delete(ctx context.Context, id uuid.UUID) error

func (*PostgresUserRepository) FindAll added in v0.5.0

func (r *PostgresUserRepository) FindAll(ctx context.Context) ([]*entities.User, error)

func (*PostgresUserRepository) FindByEmail added in v0.5.0

func (r *PostgresUserRepository) FindByEmail(ctx context.Context, email string) (*entities.User, error)

func (*PostgresUserRepository) FindByID added in v0.5.0

func (r *PostgresUserRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.User, error)

func (*PostgresUserRepository) Update added in v0.5.0

func (r *PostgresUserRepository) Update(ctx context.Context, user *entities.User) error

Jump to

Keyboard shortcuts

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