YUKI Hiroshi
null+****@clear*****
Fri Oct 17 17:59:55 JST 2014
YUKI Hiroshi 2014-10-17 17:59:55 +0900 (Fri, 17 Oct 2014) New Revision: 14a0ec9be3791cb28b0eb5b039123b13ae1a40c2 https://github.com/droonga/express-droonga/commit/14a0ec9be3791cb28b0eb5b039123b13ae1a40c2 Message: Export hostName, port, and tag (mainly for testing) Modified files: lib/adapter/wrapper.js Modified: lib/adapter/wrapper.js (+9 -0) =================================================================== --- lib/adapter/wrapper.js 2014-10-17 17:59:34 +0900 (bef8cef) +++ lib/adapter/wrapper.js 2014-10-17 17:59:55 +0900 (3c3c91e) @@ -10,6 +10,15 @@ function DroongaProtocolConnectionWrapper(connection, callback, options) { // or this._logger = this._options.logger || console; } DroongaProtocolConnectionWrapper.prototype = { + get tag() { + return this._connection.tag; + }, + get hostName() { + return this._connection.hostName; + }, + get port() { + return this._connection.port; + }, get routeToSelf() { return this._routeToSelf || (this._routeToSelf = this._connection.getRouteToSelf(this._options)); -------------- next part -------------- HTML����������������������������...Download