Created
October 29, 2018 11:49
-
-
Save markbirbeck/6dc909b88cf57a45e8aa6aa3d9c3f3c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ElasticSearchWritableStream extends stream.Writable { | |
constructor(config, options) { | |
super(options) | |
this.config = config | |
/** | |
* Create the ElasticSearch client: | |
*/ | |
this.client = new elasticsearch.Client({ | |
host: this.config.host | |
}) | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment