1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-02 09:17:55 -04:00
v2fly/plugin.go
Darien Raymond 40d7c40489
comments
2017-11-22 23:15:14 +01:00

19 lines
551 B
Go

package core
// PluginMetadata contains some brief information regarding a plugin.
type PluginMetadata struct {
// Name of the plugin
Name string
}
// GetMetadataFuncName is the name of the function in the plugin to return PluginMetadata.
const GetMetadataFuncName = "GetPluginMetadata"
// GetMetadataFunc is the type of the function in the plugin to return PluginMetadata.
type GetMetadataFunc func() PluginMetadata
// LoadPlugins loads all possible plugins in the 'plugin' directory.
func LoadPlugins() error {
return loadPluginsInternal()
}