Documentation
¶
Index ¶
Constants ¶
This section is empty.
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 ¶
type Error ¶ added in v0.6.17
func NewErrorAllMsg ¶ added in v0.6.17
func NewErrorSubMsg ¶ added in v0.6.17
type EventName ¶
type EventName string
const ( StartupEvent EventName = "startup" ShutdownEvent EventName = "shutdown" CertRenewEvent EventName = "certrenew" InstanceStartupEvent EventName = "instancestartup" InstanceRestartEvent EventName = "instancerestart" RegistryChangeEvent EventName = "registryChange" //ConfigChangeEvent should use the all config data as info ConfigChangeEvent EventName = "configChange" )
Click to show internal directories.
Click to hide internal directories.