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.
| 10 | // must implement. Remote-only engines (e.g. markitdown) are discovered via |
| 11 | // the docreader ListEngines RPC and do not need a local registration. |
| 12 | type 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. |
| 20 | var localEngines []EngineRegistration |
no outgoing calls
no test coverage detected