Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DynamicPluginType dynamic lib DynamicPluginType PluginType = "dynamic-plugin" // ExecutablePluginType executable file ExecutablePluginType PluginType = "executable-plugin" // DefaultTimeout default timeout for plugin invocation DefaultTimeout int = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginConfig ¶
type PluginConfig struct { Version string `json:"version"` Name string `json:"name"` Type PluginType `json:"type"` DefaultAtrrs []*typesplugin.Attribute `json:"defaultAttrs"` Timeout int `json:"timeout"` }
PluginConfig configuration for loading plugin
func NewConfig ¶
func NewConfig(path string) (*PluginConfig, error)
NewConfig loading plugin config with specified file
Click to show internal directories.
Click to hide internal directories.