Frank Schroeder e2c37b47ee agent: Replace client/server with delegate interface
This patch adds a new internal interface clientServer
which defines the common methods of consul.Client and
consul.Server. This allows to replace the following
code

    if a.server != nil {
        a.server.do()
    } else {
        a.client.do()
    }

with

    a.delegate.do()

In case a specific type is required a type check can
be performed:

    if srv, ok := a.delegate.(*consul.Server); ok {
        srv.doSrv()
    }
2017-05-15 18:35:38 +02:00
..
2017-04-25 09:26:13 -07:00
2017-05-05 17:07:00 +02:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-05-05 17:07:00 +02:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2016-09-26 16:06:53 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-05-05 17:07:00 +02:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2015-01-25 05:00:52 +01:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-05-02 16:08:07 -07:00