Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶ added in v5.3.5
type Core struct {
Plugins []Plugin
}
func (*Core) PluginExists ¶ added in v5.3.5
PluginExists checks if a plugin with the given name exists
func (*Core) RegisterPlugins ¶ added in v5.3.5
func (c *Core) RegisterPlugins()
RegisterPlugins Registers all plugins that were added into the TOML config file
type MyrteaPlugin ¶
type MyrteaPlugin interface { ServicePort() int HandlerPrefix() string Handler() http.Handler Start() error Stop() error }
MyrteaPlugin is a standard interface for any myrtea plugins
type Plugin ¶ added in v5.3.5
type Plugin struct { Config pluginutils.PluginConfig Plugin MyrteaPlugin }
Click to show internal directories.
Click to hide internal directories.