mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
12 lines
301 B
Go
12 lines
301 B
Go
|
|
package plugin
|
||
|
|
|
||
|
|
import "github.com/caddyserver/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,
|
||
|
|
})
|
||
|
|
}
|