Documentation
¶
Overview ¶
Package toolplugin is the plugin side of tool plugins: ServeTool turns an ordinary tool.Module (the same Register func a built-in tool uses) into a binary that serves HTTP on the unix socket the host names, while the host reverse-proxies /tools/{key}/* to it and wraps page fragments in wick's layout.
It lives apart from pkg/plugin so connector binaries, which import pkg/plugin, do not link pkg/tool and its templ render stack.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns the plugin's HTTP handler for mod without serving it — for tests and local harnesses. cfg seeds the config store.
func Manifest ¶
func Manifest(mod tool.Module, opts ...Option) wickplugin.ToolModule
Manifest returns the tool half of mod's manifest (routes are registered to discover the webhooks).