Documentation
¶
Index ¶
- type Host
- func (h *Host) Close()
- func (h *Host) Debug(ctx context.Context, id, instanceID, code string) (plugin.DebugResult, error)
- func (h *Host) Emit(event plugin.Event)
- func (h *Host) List() []plugin.Info
- func (h *Host) Restart(id string) error
- func (h *Host) SetObserver(observer func(plugin.Event))
- func (h *Host) Start(id string) error
- func (h *Host) Stop(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func (*Host) Emit ¶
Emit sends an event to every matching plugin. Events are deliberately lossy: a plugin that cannot keep up must not stall the network loop.
func (*Host) Restart ¶
Restart reloads plugin.json and starts a fresh process. This is also the operation used by the file watcher after source changes.