diff options
author | 2016-08-27 21:14:35 +0100 | |
---|---|---|
committer | 2016-08-27 21:14:35 +0100 | |
commit | 0c57748be2b882e3baf92ebdf8fa1eb607f06f58 (patch) | |
tree | 827bc1bed723d86b4232dfd8a0fee2a69c0ab47a | |
parent | 7db3511efcac03e1ea044c96acdeb1d051a319c5 (diff) | |
download | coredns-0c57748be2b882e3baf92ebdf8fa1eb607f06f58.tar.gz coredns-0c57748be2b882e3baf92ebdf8fa1eb607f06f58.tar.zst coredns-0c57748be2b882e3baf92ebdf8fa1eb607f06f58.zip |
Rename RegisterDirective to RegisterDevDirective
There is no good reason to be different than Caddy and allows us to
piggyback on it's documentation.
-rw-r--r-- | core/dnsserver/directives.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/dnsserver/directives.go b/core/dnsserver/directives.go index 17b421741..25f935111 100644 --- a/core/dnsserver/directives.go +++ b/core/dnsserver/directives.go @@ -6,9 +6,10 @@ import ( "strings" ) -// RegisterDirective splices name into the list of directives -// immediately before another directive. . -// If before is empty, +// RegisterDevDirective splices name into the list of directives +// immediately before another directive. This function is ONLY +// for plugin development purposes! NEVER use it for a plugin +// that you are not currently building. If before is empty, // the directive will be appended to the end of the list. // // It is imperative that directives execute in the proper @@ -22,7 +23,7 @@ import ( // Directive names must be lower-cased and unique. Any errors // here are fatal, and even successful calls print a message // to stdout as a reminder to use it only in development. -func RegisterDirective(name, before string) { +func RegisterDevDirective(name, before string) { if name == "" { fmt.Println("[FATAL] Cannot register empty directive name") os.Exit(1) |