nativedoc

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("nativedoc backend unavailable: build with CGO and the nativedoc tag")

ErrUnavailable is returned by the fallback build when the native document backend was not compiled in. Build with CGO and the nativedoc tag to enable it.

Functions

func InitORT

func InitORT() error

InitORT reports that ONNX Runtime support is unavailable in this build.

func Initialized

func Initialized() bool

Initialized reports whether ONNX Runtime has been initialized.

Types

type Converter

type Converter struct {
	ModelDir string
}

Converter is a placeholder implementation used when the native document backend is not compiled in.

func New

func New(modelDir string) *Converter

New creates an unavailable placeholder converter.

func (*Converter) ConvertBytes

ConvertBytes returns ErrUnavailable in non-nativedoc builds.

func (*Converter) ConvertFile

ConvertFile returns ErrUnavailable in non-nativedoc builds.

func (*Converter) ConvertURL

ConvertURL returns ErrUnavailable in non-nativedoc builds.

func (*Converter) IsAvailable

func (c *Converter) IsAvailable(context.Context) bool

IsAvailable reports whether this converter can process documents.

func (*Converter) RenderPage

func (c *Converter) RenderPage(context.Context, []byte, int) ([]byte, error)

RenderPage returns ErrUnavailable in non-nativedoc builds.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL