MCPcopy
hub / github.com/Tencent/WeKnora / EngineRegistration

Interface EngineRegistration

internal/infrastructure/docparser/engine_registry.go:12–17  ·  view source on GitHub ↗

EngineRegistration is the interface every locally registered parser engine must implement. Remote-only engines (e.g. markitdown) are discovered via the docreader ListEngines RPC and do not need a local registration.

Source from the content-addressed store, hash-verified

10// must implement. Remote-only engines (e.g. markitdown) are discovered via
11// the docreader ListEngines RPC and do not need a local registration.
12type EngineRegistration interface {
13 Name() string
14 Description() string
15 FileTypes(docreaderConnected bool) []string
16 CheckAvailable(docreaderConnected bool, overrides map[string]string) (available bool, reason string)
17}
18
19// localEngines holds all locally registered parser engines.
20var localEngines []EngineRegistration

Callers 4

ListAllEnginesFunction · 0.65
ListAllEnginesFunction · 0.65
ListAllEnginesFunction · 0.65
ListAllEnginesFunction · 0.65

Implementers 7

builtinEngineinternal/infrastructure/docparser/engi
simpleEngineinternal/infrastructure/docparser/engi
weKnoraCloudEngineinternal/infrastructure/docparser/engi
mineruEngineinternal/infrastructure/docparser/engi
mineruCloudEngineinternal/infrastructure/docparser/engi
paddleOCRVLEngineinternal/infrastructure/docparser/engi
paddleOCRVLCloudEngineinternal/infrastructure/docparser/engi

Calls

no outgoing calls

Tested by

no test coverage detected