+1
-1
| { | ||
| "name": "vip", | ||
| "version": "0.1.3", | ||
| "version": "0.1.4", | ||
| "description": "very important process - use etcd to avoid a split brain across a cluster", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+4
-4
@@ -55,7 +55,7 @@ vip | ||
| ### `var vipcontroller = vip(etcdhosts)` | ||
| #### `var vipcontroller = vip(etcdhosts)` | ||
| Create a controller that is connected to some etcd peers | ||
| ### `var service = vipcontroller(opts, fn)` | ||
| #### `var service = vipcontroller(opts, fn)` | ||
@@ -73,3 +73,3 @@ Create a new candidate function - opts is an object with the following keys: | ||
| ### `service.on('select', function(value){})` | ||
| #### `service.on('select', function(value){})` | ||
@@ -80,3 +80,3 @@ This event is triggered when the node has been elected and it's value distributed to the cluster. | ||
| ### `service.on('change', function(value, nodeid){})` | ||
| #### `service.on('change', function(value, nodeid){})` | ||
@@ -83,0 +83,0 @@ This event is triggered when the lock value has changed regardless of which node was elected. |
5523
0.07%