Documentation
¶
Index ¶
- Variables
- func OnRegister(dis plug.EventDispatcherInterface, cb func(e *SiteSetupEvent))
- func OnSetup(dis plug.EventDispatcherInterface, cb func(e *SiteSetupEvent) error)
- func Trigger(dis plug.PluginEventDispatcherInterface, eventName string, site *core.Site, ...) error
- type Plugin
- type PostMigratePlugin
- type PostSetupPlugin
- type PreMigratePlugin
- type PreSetupPlugin
- type SiteSetupEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( E_SETUP = PKG + ".setup" E_REGISTER = PKG + ".register" )
View Source
var (
PKG = path_helpers.GetCalledDir()
)
Functions ¶
func OnRegister ¶
func OnRegister(dis plug.EventDispatcherInterface, cb func(e *SiteSetupEvent))
func OnSetup ¶
func OnSetup(dis plug.EventDispatcherInterface, cb func(e *SiteSetupEvent) error)
Types ¶
type Plugin ¶
type Plugin struct { plug.EventDispatcher SitesRegisterKey string }
func (*Plugin) OnRegister ¶
func (p *Plugin) OnRegister()
func (*Plugin) RequireOptions ¶
type PostMigratePlugin ¶
type PostSetupPlugin ¶
type PreMigratePlugin ¶
type PreSetupPlugin ¶
type SiteSetupEvent ¶
Click to show internal directories.
Click to hide internal directories.