open-consul/consul
Frank Schroeder d6eb1d434f 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
..
agent Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
prepared_query golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
servers golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
state api: Add ServiceTags to Health state endpoint (#153) 2017-04-28 15:00:08 -07:00
structs api: Add ServiceTags to Health state endpoint (#153) 2017-04-28 15:00:08 -07:00
acl.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
acl_endpoint.go golint: No stutter 2017-04-25 09:26:13 -07:00
acl_endpoint_test.go retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
acl_replication.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
acl_replication_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
acl_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
autopilot.go Add formatting to autopilot init messages 2017-04-12 18:39:03 -07:00
autopilot_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
catalog_endpoint.go agent: Disallow :: and [::] as service address 2017-05-09 17:56:15 +02:00
catalog_endpoint_test.go agent: Disallow :: and [::] as service address 2017-05-09 17:56:15 +02:00
client.go agent: Replace client/server with delegate interface 2017-05-15 18:35:38 +02:00
client_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
config.go Removes a stale comment about the RPC source address. 2017-05-10 20:45:19 -07:00
config_test.go
coordinate_endpoint.go golint: No stutter 2017-04-25 09:26:13 -07:00
coordinate_endpoint_test.go retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
endpoints.md
filter.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
filter_test.go
flood.go Fix vet issues 2017-03-23 20:29:31 -04:00
fsm.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
fsm_test.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
health_endpoint.go Fix imports 2017-05-05 17:07:00 +02:00
health_endpoint_test.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
helper_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
internal_endpoint.go golint: No stutter 2017-04-25 09:26:13 -07:00
internal_endpoint_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
issue_test.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
kvs_endpoint.go golint: No stutter 2017-04-25 09:26:13 -07:00
kvs_endpoint_test.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
leader.go Adds timeout and waits for feedback when asking the leader loop to reassert. 2017-05-04 11:52:22 -07:00
leader_test.go Tweaks some tests that were having a hard time in Travis CI and 2017-05-09 06:48:26 -07:00
merge.go Adds node ID integrity checking for cluster merges. 2017-03-27 00:15:42 -07:00
merge_test.go Adds node ID integrity checking for cluster merges. 2017-03-27 00:15:42 -07:00
operator_autopilot_endpoint.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator_autopilot_endpoint_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
operator_endpoint.go Moves operator sub-functions into their own files. 2017-03-30 12:35:50 -07:00
operator_raft_endpoint.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator_raft_endpoint_test.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
pool.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
prepared_query_endpoint.go golint: No stutter 2017-04-25 09:26:13 -07:00
prepared_query_endpoint_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
raft_rpc.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
rpc.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
rpc_test.go golint: No stutter 2017-04-25 09:26:13 -07:00
rtt.go
rtt_test.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
serf.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
serf_test.go
server.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
server_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
session_endpoint.go golint: No stutter 2017-04-25 09:26:13 -07:00
session_endpoint_test.go test: Speedup session renew tests 2017-04-27 10:34:30 -07:00
session_ttl.go
session_ttl_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
snapshot_endpoint.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
snapshot_endpoint_test.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
stats_fetcher.go Add a path for transitioning to TLS on an existing cluster (#3001) 2017-05-10 14:25:48 -07:00
stats_fetcher_test.go test: simplify joining clusters 2017-05-05 17:07:04 +02:00
status_endpoint.go
status_endpoint_test.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
txn_endpoint.go Fix vet issues 2017-03-23 20:29:31 -04:00
txn_endpoint_test.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
util.go Add formatting to autopilot init messages 2017-04-12 18:39:03 -07:00
util_test.go Add formatting to autopilot init messages 2017-04-12 18:39:03 -07:00