plugins

package
v0.0.0-...-237f4c2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLibraryExtension = comm.GetShareLibExt()

Default library file extension

View Source
var DefaultPluginsFolder = comm.GetCurrentPath() + string(os.PathListSeparator) + "services"

Default Plugin libraries folder

Functions

This section is empty.

Types

type ServiceDiscovery

type ServiceDiscovery func() ([]ServicePlugin, error)

Describe Proxy Lookup function, expected with name = ServiceDiscovery -> func()([]ServicePlugin)

type ServicePlugin

type ServicePlugin interface {
	GetActionAndPath() (string, common.ApiAction, *types.Command, error)
}

Describe the exposed Plugin interface for the proxies access to the service triplets ( made of: Path string, net/common.ApiAction, net/cluster/types.Command)

func CollectAllPlugins

func CollectAllPlugins(pluginsFolder string, libExtension string) ([]ServicePlugin, error)

Looks up for plugin by a given ParserFormat, using eventually pluginsFolder and library exception excluded the dot, in case one of them is empty string it will be replaced with the package DefaultPluginsFolder and DefaultLibraryExtension variables

Jump to

Keyboard shortcuts

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