config.go 425 B

1234567891011121314151617181920
  1. package hook
  2. import (
  3. "github.com/mholt/caddy"
  4. )
  5. // Config describes how Hook should be configured and used.
  6. type Config struct {
  7. ID string
  8. Event caddy.EventName
  9. Command string
  10. Args []string
  11. }
  12. // SupportedEvents is a map of supported events.
  13. var SupportedEvents = map[string]caddy.EventName{
  14. "startup": caddy.InstanceStartupEvent,
  15. "shutdown": caddy.ShutdownEvent,
  16. "certrenew": caddy.CertRenewEvent,
  17. }