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-05-15 18:35:38 +02:00
2017-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +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-05-12 22:12:47 +02:00
2017-04-25 09:26:13 -07:00
2017-05-05 17:07:03 +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-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +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
2016-09-26 16:06:53 -07:00
2017-02-08 19:26:24 -05: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
2017-05-12 22:12:47 +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-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +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-02-24 15:54:49 -08:00
2017-02-24 15:54:49 -08: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-02-15 13:53:34 -08:00
2017-02-15 13:53:34 -08:00
2017-04-25 09:26:13 -07:00
2017-04-25 09:26:13 -07:00
2017-05-05 17:07:03 +02:00
2017-04-25 09:26:13 -07:00
2016-10-25 19:20:24 -07:00
2017-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +02:00
2017-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +02:00
2017-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +02:00
2017-04-25 09:26:13 -07:00
2017-05-12 22:12:47 +02:00
2015-01-25 05:00:52 +01:00
2015-01-25 11:42:29 +01:00
2017-05-12 22:12:47 +02:00
2017-04-25 09:26:13 -07:00
2017-02-09 20:08:25 -05: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