Documentation ¶
Index ¶
- type PostgresTaskRepository
- func (r *PostgresTaskRepository) Create(ctx context.Context, task *entities.Task) error
- func (r *PostgresTaskRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *PostgresTaskRepository) FindAll(ctx context.Context, scope *entities.TaskScope) ([]*entities.Task, error)
- func (r *PostgresTaskRepository) FindByID(ctx context.Context, id uuid.UUID, scope *entities.TaskScope) (*entities.Task, error)
- func (r *PostgresTaskRepository) Update(ctx context.Context, task *entities.Task) error
- type PostgresTaskRunRepository
- func (r *PostgresTaskRunRepository) Create(ctx context.Context, taskRun *entities.TaskRun) error
- func (r *PostgresTaskRunRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *PostgresTaskRunRepository) FindAll(ctx context.Context) ([]*entities.TaskRun, error)
- func (r *PostgresTaskRunRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.TaskRun, error)
- func (r *PostgresTaskRunRepository) FindByTaskID(ctx context.Context, taskID uuid.UUID) ([]*entities.TaskRun, error)
- func (r *PostgresTaskRunRepository) Update(ctx context.Context, taskRun *entities.TaskRun) error
- type PostgresUserRepository
- func (r *PostgresUserRepository) Create(ctx context.Context, user *entities.User) error
- func (r *PostgresUserRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *PostgresUserRepository) FindAll(ctx context.Context) ([]*entities.User, error)
- func (r *PostgresUserRepository) FindByEmail(ctx context.Context, email string) (*entities.User, error)
- func (r *PostgresUserRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.User, error)
- func (r *PostgresUserRepository) Update(ctx context.Context, user *entities.User) error
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) FindAll ¶
func (r *PostgresTaskRepository) FindAll(ctx context.Context, scope *entities.TaskScope) ([]*entities.Task, error)
FindAll returns all tasks 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) FindByTaskID ¶ 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) FindByEmail ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.