2020-09-09 18:09:42 +00:00
|
|
|
package plugin
|
|
|
|
|
2022-01-25 13:15:24 +00:00
|
|
|
import "github.com/coredns/caddy"
|
2020-09-09 18:09:42 +00:00
|
|
|
|
|
|
|
// 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,
|
|
|
|
})
|
|
|
|
}
|