Skip to content

Commit

Permalink
sketch out findAndBind method
Browse files Browse the repository at this point in the history
  • Loading branch information
mamund committed Mar 3, 2018
1 parent 3279fc5 commit 9f9752d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/registry/data/disco/10i1gznk7nm

This file was deleted.

1 change: 0 additions & 1 deletion examples/registry/data/disco/1jm5kl1j87n

This file was deleted.

1 change: 0 additions & 1 deletion examples/registry/data/disco/1vhu9m1n3s5

This file was deleted.

1 change: 0 additions & 1 deletion examples/registry/data/disco/baf88f4jwi8

This file was deleted.

8 changes: 8 additions & 0 deletions examples/zip-server/discovery.js
Expand Up @@ -12,6 +12,14 @@ var url = require('url');
// public settings for discovery
settings.registryID = null;

// single step does it all
function findAndBind(data, cb) {
// use find() method to get full URLs for all dependent services
// use bind() to notify the registry you intended to use each dependent
// use register() to add yourself to the registry (also handles renew)
// if all goes well, execute the passed-in callback to continue
}

// register a service
function register(data, cb) {
var options, body, msg;
Expand Down

0 comments on commit 9f9752d

Please sign in to comment.