From d77d2be13ea57f56a262da4d47a7983b18be1c7a Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Thu, 15 Jun 2017 11:42:07 +0200 Subject: [PATCH] agent: rename clientServer interface to delegate --- agent/agent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 6595600e61..6326e57887 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -57,9 +57,9 @@ const ( // dnsNameRe checks if a name or tag is dns-compatible. var dnsNameRe = regexp.MustCompile(`^[a-zA-Z0-9\-]+$`) -// clientServer defines the interface shared by both +// delegate defines the interface shared by both // consul.Client and consul.Server. -type clientServer interface { +type delegate interface { Encrypted() bool GetLANCoordinate() (*coordinate.Coordinate, error) Leave() error @@ -94,7 +94,7 @@ type Agent struct { // delegate is either a *consul.Server or *consul.Client // depending on the configuration - delegate clientServer + delegate delegate // acls is an object that helps manage local ACL enforcement. acls *aclManager