native

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package native defines the stable capability boundary for platform-native PDF engines. A build that does not include a verified backend reports that fact without probing, downloading, or launching anything.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (pdf.Engine, error)

New constructs the build-selected backend or returns a stable typed error.

Types

type Capability

type Capability struct {
	Name      string `json:"name"`
	Compiled  bool   `json:"compiled"`
	Available bool   `json:"available"`
	Code      string `json:"code,omitempty"`
	Reason    string `json:"reason,omitempty"`
}

Capability is the machine-readable native engine state for this build and host. Compiled and Available are separate so missing runtimes stay honest.

func Probe

func Probe(ctx context.Context) Capability

Probe performs only the build-selected backend's read-only capability check.

Jump to

Keyboard shortcuts

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