Documentation
¶
Index ¶
- type Manager
- func (m *Manager) Action(id, action string, p map[string]any) error
- func (m *Manager) AddCommand(id string, command domain.QuickCommand) (domain.QuickCommand, error)
- func (m *Manager) Chat(id string, before int64, limit int) (domain.ChatPage, error)
- func (m *Manager) Close()
- func (m *Manager) Connect(id string) error
- func (m *Manager) Create(s domain.Server) (domain.Snapshot, error)
- func (m *Manager) Delete(id string) error
- func (m *Manager) DeleteCommand(id, commandID string) error
- func (m *Manager) Disconnect(id string) error
- func (m *Manager) Get(id string) (domain.Snapshot, bool)
- func (m *Manager) InvokePluginAPI(ctx context.Context, instanceID, method string, raw json.RawMessage) (any, error)
- func (m *Manager) List() []domain.Snapshot
- func (m *Manager) PublishPluginEvent(event plugin.Event)
- func (m *Manager) RefreshGPCI() (string, error)
- func (m *Manager) RefreshScores(ctx context.Context, id string) error
- func (m *Manager) SetPluginSink(sink plugin.EventSink)
- func (m *Manager) StartAutoConnect()
- func (m *Manager) Subscribe() (<-chan domain.Event, <-chan domain.Event, func(), error)
- func (m *Manager) SubscribePluginEvents() (<-chan domain.Event, func(), error)
- func (m *Manager) Update(id string, s domain.Server) (domain.Snapshot, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AddCommand ¶
func (m *Manager) AddCommand(id string, command domain.QuickCommand) (domain.QuickCommand, error)
func (*Manager) DeleteCommand ¶
func (*Manager) Disconnect ¶
func (*Manager) InvokePluginAPI ¶ added in v0.1.4
func (m *Manager) InvokePluginAPI(ctx context.Context, instanceID, method string, raw json.RawMessage) (any, error)
InvokePluginAPI is the intentionally broad API boundary exposed to out-of-process plugins. Keep the method names stable and make the generic action endpoint available as an escape hatch for new client capabilities.
func (*Manager) PublishPluginEvent ¶ added in v0.1.4
PublishPluginEvent forwards plugin-host diagnostics and event envelopes to browser subscribers without feeding them back into the plugin host.
func (*Manager) RefreshGPCI ¶ added in v0.1.4
RefreshGPCI rotates the global per-installation client identifier. Active clients keep their existing handshake value and use the new value after the next connection attempt.
func (*Manager) RefreshScores ¶ added in v0.1.4
func (*Manager) SetPluginSink ¶ added in v0.1.4
SetPluginSink attaches the external plugin host. It is separate from New because the host calls back into Manager for API requests.
func (*Manager) StartAutoConnect ¶
func (m *Manager) StartAutoConnect()