plugin_host

package
v1.26.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

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) Connect

func (h *Host) Connect(ctx context.Context, id plugin.InstallationID, conn duplex.Duplex) error

func (*Host) GetSession

func (h *Host) GetSession(ctx context.Context, id plugin.InstallationID) (plugin_runner.Session, error)

func (*Host) GetSessions

func (h *Host) GetSessions(ctx context.Context) ([]plugin_runner.Session, error)

func (*Host) Load

func (h *Host) Load(ctx context.Context, rec plugin.Record) error

func (*Host) SetServerURL

func (h *Host) SetServerURL(u string)

func (*Host) Unload

func (h *Host) Unload(ctx context.Context, id plugin.InstallationID) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL