cabi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package cabi exports the ABI 1 function table for Go c-shared provider plugins. Import it from a main package and call Export in init; see examples/echo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(factory Factory) error

Export installs the factory before the host calls cliproxy_plugin_init. Call once from main.init, never from main.main (c-shared does not run main).

Types

type Factory

type Factory func(providerkit.Caller) (*providerkit.Runtime, error)

Factory constructs a fresh runtime for each successful native initialization. A resident image can be logically shut down and initialized again by the host.

Jump to

Keyboard shortcuts

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