You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/plugin.go

19 lines
551 B

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