Expand description
Plugin clients and the call guard (internal/pluginhost/client_guard.go).
Plugin entry points block, so every call runs on Tokio’s blocking pool. A caller that
stops waiting (its future is dropped) does not stop the call; the guard counts calls
still running and shutdown waits for them before the library is closed, as Go’s
guardedPluginClient does.
Structs§
- Callback
Error - A host callback failure:
host_call_failedwith an optional HTTP status. - Callback
Instance - Rejects callbacks from a plugin instance once its load was abandoned or it was
unloaded (Go
hostCallbackInstance). - Guarded
Client - Go
guardedPluginClient.
Enums§
- Guard
Error - Why a guarded call produced no response.
Traits§
- Callback
Handler - Receives
host.*calls from plugins. Called on the plugin’s thread; implementations may block. - Plugin
Client - One loaded plugin, native or test double.