Help us shape the future of Go! Take the 2026 Go Developer Survey

worker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jobs

type Jobs interface {
	ProcessNext(
		ctx context.Context,
		process func(ctx context.Context, job models.Job, execution *models.ExecutionContext) ([]models.Job, error),
	) (bool, error)
}

type Worker

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

func New

func New(jobs Jobs, workflows Workflows, e *engine.Engine, logger *slog.Logger, idle time.Duration) *Worker

func (*Worker) Run

func (w *Worker) Run(ctx context.Context) error

type Workflows

type Workflows interface {
	GetByID(ctx context.Context, id string) (*models.Workflow, error)
}

Jump to

Keyboard shortcuts

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