Commit Graph

26 Commits (0a5707420bc62880d79ce5dfe168c62744826a52)

Author SHA1 Message Date
Jonathan Boulle f1ed69e883 *: switch to line comments for copyright
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Xiang Li 7171410422 discovery: discovery will try forever when there is a timeout.
Perviously, etcd retries three times for timeout error. After this
commit, etcd retries forever. Also this commit make etcd client
aware of gateway timetout.
2014-12-10 23:08:24 -08:00
Brian Waldon 9a728a127a dep: bump golang.org/x/net/context
Move from code.google.com/p/go.net/context to
golang.org/x/net/context before bumping to latest.
2014-11-20 10:19:12 -08:00
Jonathan Boulle 8f1885a398 discovery: add command line flag for discovery-proxy 2014-11-06 16:35:24 -08:00
Jonathan Boulle 68bca981de discovery: simplify interface
There's no real need to expose a Discoverer interface/struct when the
only use of the interface (and indeed the module) is to invoke a single
function. This isn't Java, after all. So instead, simplify to Discovery
exposing just two functions: JoinCluster (i.e. what was formerly called
"discovery"), and GetCluster (hitherto "ProxyDiscovery")
2014-11-05 22:45:01 -08:00
Brian Waldon 17c6f21d68 client: elevate context to caller of KeysAPI 2014-10-31 17:27:43 -07:00
Xiang Li 027e944985 discovery: fix discovery for not working on customized discovery service 2014-10-29 18:30:59 -07:00
Brian Waldon ce4df96e69 client: break apart KeysAPI from httpClient 2014-10-24 13:27:59 -07:00
Jonathan Boulle 341c7190d3 test: add govet to tests 2014-10-21 11:32:38 -07:00
Jonathan Boulle b3d5333cb3 *: fix various formatting issues 2014-10-20 17:55:18 -07:00
Jonathan Boulle 7a4d42166b *: add license header to all source files 2014-10-17 15:41:22 -07:00
Jonathan Boulle e0801360d3 godep: update clockwork dependency 2014-10-17 10:05:29 -07:00
Jonathan Boulle 47c2421f7b godeps: add clockwork 2014-10-17 10:05:29 -07:00
Jonathan Boulle de3bf58876 discovery: switch to fake clock 2014-10-17 10:05:29 -07:00
Jonathan Boulle 7f8f371b0e discovery: add ability to proxy discovery requests 2014-10-16 11:15:04 -07:00
Barak Michener 5e7267a751 last comment 2014-10-09 13:16:45 -04:00
Barak Michener 5fde52a403 add too many retries test case 2014-10-08 21:58:19 -04:00
Barak Michener 9b35ca3a52 simplify and multiple retry 2014-10-08 21:53:15 -04:00
Barak Michener dbac2e8f15 test retry logic 2014-10-08 19:41:59 -04:00
Xiang Li 9e3d045b2b *:discovery hook up 2014-10-06 10:12:42 -07:00
Xiang Li 08ebb05335 discovery: add a overfull case for waitNodes 2014-09-22 19:51:31 -07:00
Xiang Li fdfaf07c46 discovery: address comments 2014-09-22 19:51:31 -07:00
Xiang Li 17068c5110 discovery: key config -> key _config 2014-09-22 19:51:31 -07:00
Xiang Li 6081311db5 discovery: store size inside /[cluster]/config 2014-09-22 19:51:31 -07:00
Xiang Li 00d1daaf1e discovery: add tests for sortableNodes 2014-09-22 19:51:31 -07:00
Xiang Li 2b623cf0fa discovery: init commit 2014-09-22 19:51:31 -07:00