Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host interface { GetLogger() *logging.Logger GetRouter() *heligo.Router GetDBE() *database.DbEngine }
Host interface is the gateway for plugins to smoothdb basic subsystems
type Plugin ¶
type Plugin interface { // Prepare is called during smoothdb initialization, when // the accessible subsystems are ready Prepare(Host) error // Run is called right after Prepare to run the plugin. // It can just return or spawn goroutines if necessary. Run() error }
Plugin is the interface that plugins must implement
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
PluginManager
func InitPluginManager ¶
func InitPluginManager(host Host, dir string, plugins []string) *PluginManager
InitPluginManager initializes the Plugin Manager
Click to show internal directories.
Click to hide internal directories.