s4wave_plugin

package
v0.51.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginResources

type PluginResources struct {
	// Client is the resource client for the target plugin.
	Client *resource_client.Client
	// contains filtered or unexported fields
}

PluginResources holds the resource client and directive reference for a cross-plugin connection. Release must be called when done to clean up both the resource client and the plugin reference.

func ConnectPluginResources

func ConnectPluginResources(
	ctx context.Context,
	b bus.Bus,
	pluginID string,
) (*PluginResources, error)

ConnectPluginResources connects to another plugin's resource service. It waits for the target plugin to be loaded, then creates a resource client. The caller must call Release on the returned PluginResources when done.

func (*PluginResources) Release

func (p *PluginResources) Release()

Release releases the resource client and the plugin directive reference.

Jump to

Keyboard shortcuts

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