process

package
v0.0.0-...-4507b72 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProcessesTableName  = "processes"
	ErrProcessExists    = "process exists"
	ErrProcessNotExists = "process not exists"
	ErrResultQueryEmpty = "result query empty"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db dao) *Repository

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, c *entity.StoreProcess) error

func (*Repository) DeleteByDeletedAt

func (r *Repository) DeleteByDeletedAt(ctx context.Context) error

func (*Repository) DeleteByProcessID

func (r *Repository) DeleteByProcessID(ctx context.Context, processID string) error

func (*Repository) DeleteByUUID

func (r *Repository) DeleteByUUID(ctx context.Context, resourceUUID string) error

func (*Repository) Get

func (r *Repository) Get(ctx context.Context) ([]*entity.StoreProcess, error)

func (*Repository) GetAllByExecutorID

func (r *Repository) GetAllByExecutorID(ctx context.Context) ([]*entity.StoreProcess, error)

func (*Repository) GetByProcessID

func (r *Repository) GetByProcessID(ctx context.Context, processID string) ([]*entity.StoreProcess, error)

func (*Repository) GetByUUID

func (r *Repository) GetByUUID(ctx context.Context, uuid string) (*entity.StoreProcess, error)

func (*Repository) GetNotFinishedByExecutorID

func (r *Repository) GetNotFinishedByExecutorID(ctx context.Context, executorID string) ([]*entity.StoreProcess, error)

func (*Repository) GetView

func (r *Repository) GetView(ctx context.Context, pagination *internalEntity.Pagination,
	filter *internalEntity.Filter) ([]*entity.StoreProcess, int, error)

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, c *entity.StoreProcess) error

Jump to

Keyboard shortcuts

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