job

package
v0.0.0-...-36c55c0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package job provides job queue API handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(
	logger *slog.Logger,
	jobClient client.JobClient,
	signingKey string,
	customRoles map[string][]string,
) []func(e *echo.Echo)

Handler returns job route registration functions.

Types

type Job

type Job struct {
	// JobClient provides job queue operations.
	JobClient client.JobClient
	// contains filtered or unexported fields
}

Job implementation of the Job APIs operations.

func New

func New(
	logger *slog.Logger,
	jobClient client.JobClient,
) *Job

New factory to create a new instance.

func (*Job) DeleteJobByID

DeleteJobByID deletes a specific job by its ID.

func (*Job) GetJobByID

func (j *Job) GetJobByID(
	ctx context.Context,
	request gen.GetJobByIDRequestObject,
) (gen.GetJobByIDResponseObject, error)

GetJobByID retrieves details of a specific job by its ID.

func (*Job) GetJobs

func (j *Job) GetJobs(
	ctx context.Context,
	request gen.GetJobsRequestObject,
) (gen.GetJobsResponseObject, error)

GetJobs lists jobs, optionally filtered by status.

func (*Job) RetryJobByID

RetryJobByID creates a new job using the same operation data as an existing job.

Directories

Path Synopsis
Package gen contains generated code for the job API.
Package gen contains generated code for the job API.

Jump to

Keyboard shortcuts

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