aboutsummaryrefslogtreecommitdiff
path: root/plugin/register.go
blob: 16090ffa64ba7efd7fa73d3444f57c70c88b7a2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package plugin

import "github.com/coredns/caddy"

// Register registers your plugin with CoreDNS and allows it to be called when the server is running.
func Register(name string, action caddy.SetupFunc) {
	caddy.RegisterPlugin(name, caddy.Plugin{
		ServerType: "dns",
		Action:     action,
	})
}