Andrea Luzzardi
d492feb7cc
golint: DiscoveryService -> Discovery
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-15 14:26:39 -07:00
Kushal Pisavadia
78dba5d623
Remove prefixes from DiscoveryService implementations
...
All of these structs are public. Previously when they were used, they'd
look like the following:
- `consul.ConsulDiscoveryService`
- `etcd.EtcdDiscoveryService`
- `file.FileDiscoveryService`
- `nodes.NodesDiscoveryService`
- `token.TokenDiscoveryService`
- `zookeeper.ZkDiscoveryService`
As a result, they stuttered when read. This commit removes the
duplication of the package names on the struct so that they read better.
See also: https://golang.org/ref/spec#Import_declarations
Signed-off-by: Kushal Pisavadia <kushi.p@gmail.com>
2015-04-15 20:58:17 +01:00
Sriram Natarajan
b174aa26de
Change heartbeat type to unsigned int
...
Check if heartbeat value is greater than zero
Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com>
2015-04-09 00:04:50 +00:00
Matt Bajor
d87c48ae4e
Fix lint violations
...
This changeset fixes all lint violations that show up with a
min_confidence of 1
- Issue #500 : Run golint on codebase
Signed-off-by: Matt Bajor <matt@notevenremotelydorky.com>
2015-03-27 21:17:44 -06:00
Victor Vieux
3df8bbed61
refactor createEntries
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 02:25:38 +00:00
Victor Vieux
ba01634743
replace discovery.Node by discovery.Entry
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 01:58:43 +00:00
Andrea Luzzardi
ec7d343a88
Merge pull request #306 from vieux/improve_logs1
...
improve some logs
2015-01-27 12:23:31 -08:00
Chanwit Kaewkasi
f5d3efa53e
fix fatal error when registering node
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-27 15:32:28 +07:00
Victor Vieux
231ded20e0
improve some logs
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-26 23:41:56 +00:00
Andrea Luzzardi
fabe77bdde
Merge pull request #283 from chanwit/cleanup-zk-path
...
Cleanup: implement full path creation for zookeeper
2015-01-26 11:52:22 -08:00
Chanwit Kaewkasi
56177ef963
cleanup to support fullpath creation for zookeeper
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-24 16:41:52 +07:00
Victor Vieux
693fb0fcf1
fix panic with no port
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-24 01:42:35 +00:00
Victor Vieux
02cc59840f
Revert "Fixes panic when ports are not specified"
...
This reverts commit a916f9cde0
.
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-24 01:42:15 +00:00
Brian Goff
a916f9cde0
Fixes panic when ports are not specified
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2015-01-23 15:56:14 -05:00
Victor Vieux
ecb47032bd
fix panics in etcd and zookeeper + add tests
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-22 19:40:24 +00:00
Chanwit Kaewkasi
1b8166c7a5
callback 1 time before looping over the zookeeper's event channel
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-10 00:52:49 +07:00
Chanwit Kaewkasi
f530d0886f
implement a proper zookeeper watcher
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-08 19:34:54 +07:00
Chanwit Kaewkasi
1e2e60806d
double check if someone delete /path outside swarm
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-08 19:34:52 +07:00
Chanwit Kaewkasi
66ff423861
make node registration more robust
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-08 19:34:50 +07:00
Chanwit Kaewkasi
de2081fa19
skip ErrNodeExists for node registration
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-08 19:34:49 +07:00
Chanwit Kaewkasi
3564e38d80
add zookeeper discovery
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-08 19:34:46 +07:00