1 |
|
2 | "use strict";
|
3 |
|
4 | var mysql = require('mysql');
|
5 |
|
6 | var MysqlRegistry = function() {
|
7 |
|
8 | };
|
9 |
|
10 | module.exports = MysqlRegistry;
|
11 |
|
12 | MysqlRegistry.prototype.initialize = function(service, callback) {
|
13 | var connection = mysql.createConnection({
|
14 | host : 'example.org',
|
15 | user : 'bob',
|
16 | password : 'secret'
|
17 | });
|
18 |
|
19 | };
|
20 |
|
21 | MysqlRegistry.prototype.registerNode = function(item, callback) {
|
22 |
|
23 | return callback(null, item);
|
24 | };
|
25 |
|
26 | MysqlRegistry.prototype.getNodeById = function(id, callback) {
|
27 |
|
28 | return callback(null, null);
|
29 |
|
30 | };
|