diff --git a/client.go b/client.go index b80cc593c..20d67bdca 100644 --- a/client.go +++ b/client.go @@ -93,6 +93,9 @@ type Client interface { // Closed returns true if the client has already had Close called on it Closed() bool + + // A private method to prevent users implementing the interface for compatibility + private() } const ( @@ -187,6 +190,8 @@ func NewClient(addrs []string, conf *Config) (Client, error) { return client, nil } +func (client *client) private() {} + func (client *client) Config() *Config { return client.conf }