Documentation ¶
Index ¶
- func CommandExec(cmd string) string
- func RandString(n int) string
- type PluginManager
- func (pm *PluginManager) Exec(cmd string, req interface{}) (interface{}, error)
- func (pm *PluginManager) GetCommands() []string
- func (pm *PluginManager) HasCommand(cmd string) bool
- func (pm *PluginManager) IsInitialized() bool
- func (pm *PluginManager) LoadPlugins(path string) error
- func (pm *PluginManager) SetDefines(defs map[string]interface{})
- func (pm *PluginManager) SetInitialDefines()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExec ¶
func RandString ¶
Types ¶
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *PluginManager
func (*PluginManager) Exec ¶
func (pm *PluginManager) Exec(cmd string, req interface{}) (interface{}, error)
func (*PluginManager) GetCommands ¶
func (pm *PluginManager) GetCommands() []string
func (*PluginManager) HasCommand ¶
func (pm *PluginManager) HasCommand(cmd string) bool
func (*PluginManager) IsInitialized ¶
func (pm *PluginManager) IsInitialized() bool
func (*PluginManager) LoadPlugins ¶
func (pm *PluginManager) LoadPlugins(path string) error
func (*PluginManager) SetDefines ¶
func (pm *PluginManager) SetDefines(defs map[string]interface{})
func (*PluginManager) SetInitialDefines ¶
func (pm *PluginManager) SetInitialDefines()
Click to show internal directories.
Click to hide internal directories.