Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TriggerLoad ¶
func TriggerPreload ¶
func TriggerServe ¶
func TriggerServe(event *core.ServeEvent) (err error)
Types ¶
type Plugin ¶
type Plugin interface {
/**
* Preload is called before the app is setup.
* This is a good place to load configurations.
*/
OnPreload(app core.App) error
/**
* Load is called after the app is setup.
* This is a good place to register commands
* and hooks.
*/
OnLoad(app core.App) error
/**
* Serve is called after the app starts and
* has finished setting up the HTTP server.
* This is a good place to register routes.
*/
OnServe(event *core.ServeEvent) error
/**
* Get plugin info
*/
Info() PluginInfo
}
func GetPlugins ¶
func GetPlugins() []Plugin
type PluginInfo ¶
type PluginModule ¶
func (PluginModule) String ¶
func (p PluginModule) String() string
Click to show internal directories.
Click to hide internal directories.