Documentation ¶
Index ¶
Constants ¶
View Source
const GenericInterfaceIdentifier = "generic"
Variables ¶
This section is empty.
Functions ¶
func LoadPlugin ¶
func LoadPlugin[P plugin.Plugin, I any](pluginName string, pluginSpec PluginSpec[P, I]) (impl I, err error)
Types ¶
type PluginSpec ¶
type PluginSpec[P plugin.Plugin, I any] struct { PluginImpl P Handshake plugin.HandshakeConfig }
func (*PluginSpec[P, I]) GetMap ¶
func (s *PluginSpec[P, I]) GetMap() map[string]plugin.Plugin
Click to show internal directories.
Click to hide internal directories.