Skip to content

Commit

Permalink
remove nats require
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Dec 8, 2016
1 parent 52e4dea commit 051ff6f
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
const
EventEmitter = require('events'),
Bloomrun = require('bloomrun'),
Nats = require('nats'),
Errio = require('errio'),
Hoek = require('hoek'),
_ = require('lodash')
Expand Down Expand Up @@ -66,7 +65,7 @@ class Hemera extends EventEmitter {

/**
* @readonly
*
*
* @memberOf Hemera
*/
get plugins() {
Expand All @@ -76,7 +75,7 @@ class Hemera extends EventEmitter {

/**
* @readonly
*
*
* @memberOf Hemera
*/
get catalog() {
Expand All @@ -86,7 +85,7 @@ class Hemera extends EventEmitter {

/**
* @readonly
*
*
* @memberOf Hemera
*/
get transport() {
Expand All @@ -96,7 +95,7 @@ class Hemera extends EventEmitter {

/**
* @readonly
*
*
* @memberOf Hemera
*/
get topics() {
Expand All @@ -106,7 +105,7 @@ class Hemera extends EventEmitter {

/**
* @param {any} plugin
*
*
* @memberOf Hemera
*/
use(params) {
Expand Down Expand Up @@ -138,7 +137,7 @@ class Hemera extends EventEmitter {

/**
* @param {any} cb
*
*
* @memberOf Hemera
*/
ready(cb) {
Expand All @@ -151,9 +150,9 @@ class Hemera extends EventEmitter {
}

/**
*
*
* @returns
*
*
* @memberOf Hemera
*/
timeout() {
Expand All @@ -163,9 +162,9 @@ class Hemera extends EventEmitter {

/**
* Add response
*
*
* @returns
*
*
* @memberOf Hemera
*/
send() {
Expand All @@ -175,9 +174,9 @@ class Hemera extends EventEmitter {

/**
* Act
*
*
* @returns
*
*
* @memberOf Hemera
*/
sendRequest() {
Expand All @@ -188,7 +187,7 @@ class Hemera extends EventEmitter {
/**
* @param {any} data
* @returns
*
*
* @memberOf Hemera
*/
reply(result) {
Expand All @@ -208,7 +207,7 @@ class Hemera extends EventEmitter {
/**
* @param {any} topic
* @returns
*
*
* @memberOf Hemera
*/
subscribe(topic) {
Expand Down Expand Up @@ -321,10 +320,10 @@ class Hemera extends EventEmitter {

}

/**
/**
* @param {any} pattern
* @param {any} cb
*
*
* @memberOf Hemera
*/
add(pattern, cb) {
Expand Down Expand Up @@ -397,7 +396,7 @@ class Hemera extends EventEmitter {
/**
* @param {any} pattern
* @param {any} cb
*
*
* @memberOf Hemera
*/
act(pattern, cb) {
Expand Down Expand Up @@ -487,7 +486,7 @@ class Hemera extends EventEmitter {
* @param {any} sid
* @param {any} pattern
* @param {any} cb
*
*
* @memberOf Hemera
*/
handleTimeout(sid, pattern, cb) {
Expand Down Expand Up @@ -526,7 +525,7 @@ class Hemera extends EventEmitter {

/**
* @returns
*
*
* @memberOf Hemera
*/
createContext() {
Expand All @@ -550,7 +549,7 @@ class Hemera extends EventEmitter {

/**
* @returns
*
*
* @memberOf Hemera
*/
close() {
Expand All @@ -559,4 +558,4 @@ class Hemera extends EventEmitter {
}
}

module.exports = Hemera
module.exports = Hemera

0 comments on commit 051ff6f

Please sign in to comment.