Skip to main content

Module client

Module client 

Source
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§

CallbackError
A host callback failure: host_call_failed with an optional HTTP status.
CallbackInstance
Rejects callbacks from a plugin instance once its load was abandoned or it was unloaded (Go hostCallbackInstance).
GuardedClient
Go guardedPluginClient.

Enums§

GuardError
Why a guarded call produced no response.

Traits§

CallbackHandler
Receives host.* calls from plugins. Called on the plugin’s thread; implementations may block.
PluginClient
One loaded plugin, native or test double.