Commit Graph

4353 Commits

Author SHA1 Message Date
f9709ffa6e ensure the code does not panic 2016-11-18 07:30:50 +00:00
1688329049 Merge pull request from simplechris/feature/consul-config
Add ability to pass consul client config via registry options.
2016-11-18 07:28:01 +00:00
8a25723fe0 Set consul token via registry options.
Optionally configure a token to use with the consul client.
2016-11-18 00:07:12 +00:00
3d7187f405 Add the ability to pass consul client config via registry options.
This can be used when you need to configure the consul client to use a specific configuration (E.G to pass a Token if consul is using ACL policies)
2016-11-17 23:24:14 +00:00
74d8ea6817 Merge pull request from micro/wrapper
Call Wrapper
2016-11-09 18:12:36 +00:00
99a3ba7358 wrap before the call, we don't want to rewrap on retry 2016-11-09 18:02:41 +00:00
c277a3ecc0 Add example of client call func wrap 2016-11-07 20:11:58 +00:00
2df46131eb fix test 2016-11-07 18:54:44 +00:00
0d84fb1913 Add wrapper test 2016-11-07 18:51:25 +00:00
7ee35f50b1 WrapCall rather than WrapCallFunc 2016-11-07 18:06:15 +00:00
f3b591d722 Strip stream func and rename call wrappers... 2016-11-07 17:58:34 +00:00
5ee585e77d Rename to CallFuncWrappers 2016-11-07 17:52:19 +00:00
c6b5237cce Add call func wrapper 2016-11-07 17:49:35 +00:00
d1d41b5a67 Fix comment 2016-11-07 16:51:28 +00:00
3b75e94e02 Merge pull request from ynori7/master
Adding the ability to specify a function to check if micro should retry a failed rpc call
2016-11-07 16:50:45 +00:00
1ab59094eb Fixing return value and gofmt 2016-11-07 17:46:12 +01:00
a6812ba332 Adjusting the logic around the returned error from the retry function 2016-11-07 17:41:51 +01:00
c6737ac64c Adjusting import because of failed build 2016-11-07 17:15:11 +01:00
a66bce0e4b Adjusting arguments and return value of retry function and adding new retry logic to stream 2016-11-07 17:10:40 +01:00
092d17a74e Adjusting names 2016-11-07 09:40:11 +01:00
7868d5a2cb Use Socket in the Client interface 2016-11-05 11:44:02 +00:00
d7e4062a0e Adding the ability to specify a function to check if micro should retry a failed rpc call 2016-11-03 10:51:47 +01:00
2c65a38ba9 Merge pull request from micro/ctx
Make copy of metadata in setHeaders
2016-11-02 17:50:34 +00:00
7635bd9753 Make copy of metadata in setHeaders 2016-11-02 17:21:53 +00:00
a36e042983 We don't need numcalls, save us a mutex lock 2016-11-01 19:40:36 +00:00
1b1fb71e44 move function 2016-10-29 21:34:15 +01:00
6d35a663a4 Don't create new message 2016-10-29 21:33:04 +01:00
b3cdbaae1a Use random starting index for roundrobin 2016-10-29 09:31:32 +01:00
db948d0dc3 Include talk link 2016-10-14 22:17:39 +01:00
32bf930ea1 update dockerfile 2016-10-08 10:26:11 +01:00
cfbcf2efbe move section down 2016-10-04 17:34:45 +01:00
3442f76989 reorder readme to get started first 2016-10-04 17:33:58 +01:00
3d922b82d1 MQTT broker has been moved to go-plugins 2016-10-01 16:56:09 +01:00
419b952fb3 Merge pull request from jelmersnoeck/jelmer/consul-registry-node-health
ConsulRegistry: use health checks to select nodes.
2016-08-26 12:13:47 +01:00
e59f7a7ace ConsulRegistry: use health checks to select nodes.
Consul sees a healthcheck that is in the warning state as a "failed"
node. This means that when we ask Consul for services that are passing,
it would not return nodes that have warning healthchecks.

In the cache, we only check on critical to skip for nodes. This makes
the cache out of sync with the non-cache implementation.

This patch reworks the non-cache implementation to ask for all nodes
(even unhealthy ones) and does the same check as within the cache, skip
nodes that have critical healthchecks.

We've noticed this issue when we deployed custom healthchecks where the
cache was acting properly, but after 1 minute we saw "None Available"
errors. This is due to the TTL expiry on the cache, which is then
followed by doing a non cached request.
2016-08-26 08:36:45 +01:00
b8241f3026 specify the Accept header along with Content-Type 2016-08-25 13:34:47 +01:00
71d64f911f make a copy of services for handle method 2016-08-24 18:37:11 +01:00
0afaaeec8d make a copy of services 2016-08-24 18:27:15 +01:00
321358ae1f Merge pull request from jelmersnoeck/jelmer/deregister-node-if-checks-fail
ConsulWatcher: deregister if service checks fail.
2016-08-11 16:13:49 +01:00
81231c0b6f ConsulWatcher: deregister if service checks fail. 2016-08-11 15:18:50 +01:00
66c38b75aa Name timeout rather than deadline 2016-08-01 16:31:27 +01:00
56aaeff042 Merge pull request from micro/extractor
Use struct tags if available
2016-08-01 13:03:32 +01:00
15f19b700f Use struct tags if available 2016-07-30 19:01:42 +01:00
2d6c403992 don't close next chan, instead use exit chan 2016-07-30 11:58:10 +01:00
720bda1439 Merge pull request from micro/deadline
Transport Deadline Support
2016-07-29 16:29:14 +01:00
9d08a7955d add deadline test 2016-07-29 15:30:51 +01:00
e7903c65ce use deadline within http transport 2016-07-28 19:12:56 +01:00
5b034ba253 Add deadline option 2016-07-28 18:38:17 +01:00
32f9546ed5 nitpick 2016-07-03 02:52:04 +01:00
65d6e45707 update readme 2016-07-03 02:49:13 +01:00