aboutsummaryrefslogtreecommitdiff
path: root/plugin/errors/setup.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-12-15 01:26:36 -0600
committerGravatar Miek Gieben <miek@miek.nl> 2017-12-15 07:26:36 +0000
commitc6937b0bfcf8c200a7d0fdb698838e329d37b78c (patch)
tree699ebc04d027321c0654b22b56911995f219b3be /plugin/errors/setup.go
parentcee6f60ab870a235dc7e052a4b5e4e7e64643f62 (diff)
downloadcoredns-c6937b0bfcf8c200a7d0fdb698838e329d37b78c.tar.gz
coredns-c6937b0bfcf8c200a7d0fdb698838e329d37b78c.tar.zst
coredns-c6937b0bfcf8c200a7d0fdb698838e329d37b78c.zip
Expose directives in dnsserver to help external plugin developers (#1315)
This fix expose directives in dnsserver package, so that external plugin developers could easily build customerized coredns+plugin without changing the code base tree of coredns. The following is an example that could bundle coredns+example, in one simple file without modifying coredns codebase: ``` package main import ( _ "github.com/coredns/example" "github.com/coredns/coredns/coremain" "github.com/coredns/coredns/core/dnsserver" ) var directives = []string{ "example", "log", "errors", ... ... ... "whoami", "startup", "shutdown", } func init() { dnsserver.Directives = directives } func main() { coremain.Run() } ``` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin/errors/setup.go')
0 files changed, 0 insertions, 0 deletions