Add roundrobin middleware

This middleware allows you to round robin a/aaaa records in a reply and
maybe more in the future (i.e.) sort a packet?
This commit is contained in:
Miek Gieben
2016-03-23 15:57:48 +00:00
parent 7d834ce037
commit b167411bba
5 changed files with 127 additions and 1 deletions

View File

@@ -51,9 +51,10 @@ var directiveOrder = []directive{
{"shutdown", setup.Shutdown},
// Directives that inject handlers (middleware)
{"prometheus", setup.Prometheus},
{"loadbalance", setup.Loadbalance},
{"log", setup.Log},
{"errors", setup.Errors},
{"prometheus", setup.Prometheus},
{"rewrite", setup.Rewrite},
{"file", setup.File},
{"proxy", setup.Proxy},