Documentation
¶
Overview ¶
Package backend runs plugin guests built as C shared libraries (lib/plugin/include/ext_plugin_guest.h), including Go -buildmode=c-shared guests, as a plugin backend. cengine/cguest loads the library and exchanges bytes; this package speaks the plugin protocol over it: ext.io.pc/v1 frames, the frame limit and default deadline, the descriptor and response checks, and the engine's errors. Native code executes inside the host and cannot be forcibly stopped.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Profile ¶
func Profile() plugin.BackendProfile
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is one C ABI guest as a plugin.Backend.
func Open ¶
Open loads an absolute verified library path, checks ABI v1 and creates an independent guest handle, within plugin.DefaultTimeout. Use inside plugin.Options.Connect. Library images remain resident for process lifetime, even after errors; use immutable revision-specific artifact paths.
func (*Backend) Close ¶
Close stops admission and releases waiting callers immediately. Native cleanup runs after an outstanding call returns. It never unloads the image.