Files
coredns/middleware/chaos
Miek Gieben 84dfdab584 Cache elements of State
Cache the size and the do bit whenever someone asked for it. We can

probably add more:



PASS

BenchmarkStateDo-4  	100000000	        11.9 ns/op

BenchmarkStateSize-4	 5000000	       265 ns/op

ok  	github.com/miekg/coredns/middleware	2.828s



PASS

BenchmarkStateDo-4  	1000000000	         2.86 ns/op

BenchmarkStateSize-4	500000000	         3.10 ns/op

ok  	github.com/miekg/coredns/middleware	5.032s



This PR also includes some testing cleanups as well.
2016-04-04 08:19:06 +01:00
..
2016-04-04 08:19:06 +01:00
2016-03-25 20:30:38 +00:00

chaos

chaos

Syntax

chaos [version] [authors...]
  • version the version to return, defaults to CoreDNS.
  • authors what authors to return. No default.

Examples

etcd {
    path /skydns
    endpoint endpoint...
    stubzones
}
  • path /skydns
  • endpoint endpoints...
  • stubzones