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

jobhook

package
v0.136.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package jobhook lets ContentKit's own white-box tests work the engine's jobs on a River client they configure (a queue subset, one worker). Hosts cannot import it; they call Engine.Start and Engine.StartJobs.

Index

Constants

This section is empty.

Variables

View Source
var Fleet func(ctx context.Context, engine any, cfg *river.Config, extra ...riverhelpers.Contribution) (*river.Client[pgx.Tx], error)

Fleet starts engine (a *contentkit.Engine) on an unstarted River client built from cfg with the engine's jobs and extra. The caller starts and stops the client; Engine.Close leaves it running.

View Source
var SearchExpansion func(engine any, batch, pages int)

SearchExpansion sizes engine's search sync: items per rename-expansion batch and batches per run (zero is the default).

View Source
var SearchSync func(ctx context.Context, engine any) (more bool, err error)

SearchSync runs one run of engine's search sync, as its job does without queueing the next, and reports whether work remains.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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