PluginModule

abstract class PluginModule<TConfig>(val config: TConfig)

An abstract class for plugin modules with a generic configuration type TConfig. This class is extended by the generated plugin module class.

Parameters

TConfig

The type of the configuration object for the plugin module.

Constructors

Link copied to clipboard
constructor(config: TConfig)

Properties

Link copied to clipboard

The configuration object for the plugin module.

Link copied to clipboard
abstract val methods: Map<String, PluginMethod>

An abstract property representing a map of method names to their corresponding PluginMethod instances.

Functions

Link copied to clipboard
suspend fun wrapInvoke(method: String, args: ByteArray?, env: ByteArray?, invoker: Invoker): Result<ByteArray>

Invokes a method of the plugin module.