Documentation ¶
Index ¶
Constants ¶
View Source
const ( StartupEvent EventName = "startup" ShutdownEvent = "shutdown" CertRenewEvent = "certrenew" InstanceStartupEvent = "instancestartup" InstanceRestartEvent = "instancerestart" RegistryChangeEvent = "registryChange" //ConfigChangeEvent should use the all config data as info ConfigChangeEvent = "configChange" )
Variables ¶
This section is empty.
Functions ¶
func EmitEvent ¶
func EmitEvent(event EventName, info interface{})
EmitEvent executes the different hooks passing the EventType as an argument. This is a blocking function. Hook developers should use 'go' keyword if they don't want to block Caddy.
func RegisterEventHook ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.