Documentation
¶
Overview ¶
Package enrich executes enrichment sources against the deployment's grain store in one of two modes: direct (auto-approve -- assertions land in the source's enrichment:<name> graph) or queue (candidates become PIPELINE-provenance suggestions for moderation). The mode is a per-source deployment decision; the enrichers themselves are mode-blind.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Source string `json:"source"`
Mode Mode `json:"mode"`
// Works is the number of Works enriched (direct) or with candidates
// queued (queue).
Works int `json:"works"`
}
Result summarizes one run.
type Service ¶
type Service struct {
Blob blob.Store
GrainPrefix string
Queue *suggest.Service
Sources map[string]Source
// Summaries, when set, is the shared maintained summary source
// (workindex, tasks/109) queue-mode runs read instead of a per-run
// corpus walk; nil falls back to ScanSummaries.
Summaries ingest.SummarySource
}
Service runs configured sources.
Click to show internal directories.
Click to hide internal directories.