application

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobService

type JobService interface {
	CreateJob(ctx context.Context, jobConfig *domain.JobConfig) (*domain.Job, error)
	GetJob(ctx context.Context, jobID string) (*domain.Job, error)
	ClaimJob(ctx context.Context) (*domain.Job, error)
	UpdateJobState(ctx context.Context, jobID string, newState domain.JobState) error
	GetJobs(ctx context.Context, states []domain.JobState, limit, offset int) ([]*domain.Job, int, error)
	GetJobTasks(ctx context.Context, jobID string, limit, offset int) ([]*domain.Task, int, error)
	CreateTask(ctx context.Context, jobID string, task *domain.Task) (*domain.Task, error)
	UpdateTask(ctx context.Context, task *domain.Task) error
	UpdateTaskState(ctx context.Context, taskID string, newState domain.TaskState) error
	ClaimTask(ctx context.Context) (*domain.Task, error)
	CountTasksByJobID(ctx context.Context, jobID string) (int, error)
	CreateEvent(ctx context.Context, jobID string, event *domain.Event) (*domain.Event, error)
	GetJobEvents(ctx context.Context, jobID string, limit, offset int) ([]*domain.Event, int, error)
	CountEventsByJobID(ctx context.Context, jobID string) (int, error)
}

JobService defines the contract for job-related operations

func Setup

func Setup(datastore *store.Datastore, appClients *clients.ClientList) JobService

Setup initializes a new JobService with the provided dependencies.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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