mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
Fix documentation and start parsing localities
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -17,10 +17,11 @@ import (
|
||||
|
||||
// Traffic is a plugin that load balances according to assignments.
|
||||
type Traffic struct {
|
||||
c *xds.Client
|
||||
id string
|
||||
health bool
|
||||
origins []string
|
||||
c *xds.Client
|
||||
id string
|
||||
health bool
|
||||
origins []string
|
||||
locality []loc
|
||||
|
||||
Next plugin.Handler
|
||||
}
|
||||
@@ -181,3 +182,10 @@ func soa(z string) []dns.RR {
|
||||
|
||||
// Name implements the plugin.Handler interface.
|
||||
func (t *Traffic) Name() string { return "traffic" }
|
||||
|
||||
// loc holds the locality for this server. It a list of the set region, zone, subzone.
|
||||
type loc struct {
|
||||
region string
|
||||
zone string
|
||||
subzone string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user