cloudflared-mirror/vendor/github.com/coredns/coredns/plugin/register.go

12 lines
297 B
Go

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,
})
}