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