mods

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IAM_PLUGIN = iota //IamClient interface
	MQ_PLUGIN
	KMS_PLUGIN
	COMPRESS_PLUGIN
	NUMS_PLUGIN
)
View Source
const EXPORTED_PLUGIN = "Exported"

Variables

This section is empty.

Functions

func InitialPlugins

func InitialPlugins() map[string]*YigPlugin

Types

type YigPlugin

type YigPlugin struct {
	Name       string
	PluginType int
	Create     func(map[string]interface{}) (interface{}, error)
}

YigPlugin is the exported variable from plugins. * the Name here is defined in plugin's code. the plugin is opened when config file is set. * the PluginType is for different interface type * such as: * IAM_PLUGIN => IamClient interface * UNKNOWN_PLUGIN=> other interface

Jump to

Keyboard shortcuts

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