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 ¶
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.
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).
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.