mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
go gen improvements (#524)
Remove the "gen" directory and move directives_generate.go out of it. Add a build ignore tag so it isn't build by default. Cleanup the go gen invocations so there are not seen as package docs. Simplify the code a bit and don't run go gen twice.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// generated by directives_generate.go; DO NOT EDIT
|
||||
package dnsserver
|
||||
|
||||
|
||||
// Directives are registered in the order they should be
|
||||
// executed.
|
||||
//
|
||||
@@ -11,27 +10,27 @@ package dnsserver
|
||||
// care what middleware above them are doing.
|
||||
|
||||
var directives = []string{
|
||||
"root",
|
||||
"bind",
|
||||
"trace",
|
||||
"health",
|
||||
"pprof",
|
||||
"prometheus",
|
||||
"errors",
|
||||
"log",
|
||||
"chaos",
|
||||
"cache",
|
||||
"rewrite",
|
||||
"loadbalance",
|
||||
"dnssec",
|
||||
"file",
|
||||
"auto",
|
||||
"secondary",
|
||||
"etcd",
|
||||
"kubernetes",
|
||||
"reverse",
|
||||
"proxy",
|
||||
"httpprox",
|
||||
"whoami",
|
||||
"erratic",
|
||||
"root",
|
||||
"bind",
|
||||
"trace",
|
||||
"health",
|
||||
"pprof",
|
||||
"prometheus",
|
||||
"errors",
|
||||
"log",
|
||||
"chaos",
|
||||
"cache",
|
||||
"rewrite",
|
||||
"loadbalance",
|
||||
"dnssec",
|
||||
"file",
|
||||
"auto",
|
||||
"secondary",
|
||||
"etcd",
|
||||
"kubernetes",
|
||||
"reverse",
|
||||
"proxy",
|
||||
"httpprox",
|
||||
"whoami",
|
||||
"erratic",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user