🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

vip

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vip - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+1
-1
package.json
{
"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",

@@ -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.