Documentation
¶
Index ¶
- func New(ctx context.Context, logger *slog.Logger, pluginReader *plugin_reader.Reader, ...) (plugin_runner.Host, error)
- type Host
- func (h *Host) Connect(ctx context.Context, id plugin.InstallationID, conn duplex.Duplex) error
- func (h *Host) GetSession(ctx context.Context, id plugin.InstallationID) (plugin_runner.Session, error)
- func (h *Host) GetSessions(ctx context.Context) ([]plugin_runner.Session, error)
- func (h *Host) Load(ctx context.Context, rec plugin.Record) error
- func (h *Host) SetServerURL(u string)
- func (h *Host) Unload(ctx context.Context, id plugin.InstallationID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( ctx context.Context, logger *slog.Logger, pluginReader *plugin_reader.Reader, pluginLogger *plugin_logger.Writer, rpcHandlerFactory *rpc_handler.Factory, bus *pubsub.Bus, cfg config.Config, ) (plugin_runner.Host, error)
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func (*Host) GetSession ¶
func (h *Host) GetSession(ctx context.Context, id plugin.InstallationID) (plugin_runner.Session, error)
func (*Host) GetSessions ¶
func (*Host) SetServerURL ¶
Click to show internal directories.
Click to hide internal directories.