File: config.go

package info (click to toggle)
golang-github-coredns-caddy 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package hook

import (
	"github.com/coredns/caddy"
)

// Config describes how Hook should be configured and used.
type Config struct {
	ID      string
	Event   caddy.EventName
	Command string
	Args    []string
}

// SupportedEvents is a map of supported events.
var SupportedEvents = map[string]caddy.EventName{
	"startup":   caddy.InstanceStartupEvent,
	"shutdown":  caddy.ShutdownEvent,
	"certrenew": caddy.CertRenewEvent,
}