plugins

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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