blob: b3b7a1432af502c0226a4853e0860aae11716e18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package plugin
import "github.com/coredns/caddy"
// Register registers your plugin with OhmyDNS2 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,
})
}
// ProbeRegister registers your plugin with OhmyDNS2 and allows it to be called when the prober is running.
func ProbeRegister(name string, action caddy.SetupFunc) {
caddy.RegisterPlugin(name, caddy.Plugin{
ServerType: "dnsprober",
Action: action,
})
}
|