mirror of
https://github.com/coredns/coredns.git
synced 2025-11-17 01:12:16 -05:00
Implement debugging with TXT records
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -199,19 +199,19 @@ func (c *Client) receive(stream adsStream) error {
|
||||
|
||||
// Select returns an address that is deemed to be the correct one for this cluster. The returned
|
||||
// boolean indicates if the cluster exists.
|
||||
func (c *Client) Select(cluster string, ignore bool) (*SocketAddress, bool) {
|
||||
func (c *Client) Select(cluster string, healty bool) (*SocketAddress, bool) {
|
||||
if cluster == "" {
|
||||
return nil, false
|
||||
}
|
||||
return c.assignments.Select(cluster, ignore)
|
||||
return c.assignments.Select(cluster, healty)
|
||||
}
|
||||
|
||||
// All returns all endpoints.
|
||||
func (c *Client) All(cluster string, ignore bool) ([]*SocketAddress, bool) {
|
||||
func (c *Client) All(cluster string, healty bool) ([]*SocketAddress, bool) {
|
||||
if cluster == "" {
|
||||
return nil, false
|
||||
}
|
||||
return c.assignments.All(cluster, ignore)
|
||||
return c.assignments.All(cluster, healty)
|
||||
}
|
||||
|
||||
// Locality holds the locality for this server. It contains a Region, Zone and SubZone.
|
||||
|
||||
Reference in New Issue
Block a user