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
Click to show internal directories.
Click to hide internal directories.