Versions in this module Expand all Collapse all v0 v0.2.1 Jan 9, 2026 v0.2.0 Jan 5, 2026 Changes in this version + const HealthEndpoint + const LayoutParsingEndpoint + type Client struct + func NewClient(cfg *config.Config) *Client + func (c *Client) IsConfigured() bool + func (c *Client) OCRFile(filePath string, opts OCROptions) *DocumentOCRResult + func (c *Client) ServerURL() string + func (c *Client) TestConnection() (bool, string) + type DocumentOCRResult struct + ErrorMessage string + LogID string + Pages []OCRResult + Success bool + func (r *DocumentOCRResult) FullMarkdown() string + type FileType int + const FileTypeImage + const FileTypePDF + type OCROptions struct + Timeout time.Duration + UseChartRecognition bool + UseDocOrientationClassify bool + UseDocUnwarping bool + func DefaultOCROptions() OCROptions + type OCRResult struct + Images map[string]string + Markdown string + PageIndex int