index.html 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Documentation Index</title>
  7. <!--[if lt IE 9]>
  8. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  9. <![endif]-->
  10. <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
  11. <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
  12. </head>
  13. <body>
  14. <div class="navbar navbar-default navbar-fixed-top ">
  15. <div class="container">
  16. <div class="navbar-header">
  17. <a class="navbar-brand" href="index.html">Documentation</a>
  18. <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
  19. <span class="icon-bar"></span>
  20. <span class="icon-bar"></span>
  21. <span class="icon-bar"></span>
  22. </button>
  23. </div>
  24. <div class="navbar-collapse collapse" id="topNavigation">
  25. <ul class="nav navbar-nav">
  26. <li class="dropdown">
  27. <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
  28. <ul class="dropdown-menu ">
  29. <li><a href="grpc.html">grpc</a></li><li><a href="grpc.credentials.html">grpc.credentials</a></li>
  30. </ul>
  31. </li>
  32. <li class="dropdown">
  33. <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
  34. <ul class="dropdown-menu ">
  35. <li><a href="grpc.Client.html">grpc.Client</a></li><li><a href="grpc.credentials-CallCredentials.html">grpc.credentials~CallCredentials</a></li><li><a href="grpc.credentials-ChannelCredentials.html">grpc.credentials~ChannelCredentials</a></li><li><a href="grpc.Metadata.html">grpc.Metadata</a></li><li><a href="grpc.Server.html">grpc.Server</a></li><li><a href="grpc.ServerCredentials.html">grpc.ServerCredentials</a></li><li><a href="grpc-ClientDuplexStream.html">grpc~ClientDuplexStream</a></li><li><a href="grpc-ClientReadableStream.html">grpc~ClientReadableStream</a></li><li><a href="grpc-ClientUnaryCall.html">grpc~ClientUnaryCall</a></li><li><a href="grpc-ClientWritableStream.html">grpc~ClientWritableStream</a></li><li><a href="grpc-ServerDuplexStream.html">grpc~ServerDuplexStream</a></li><li><a href="grpc-ServerReadableStream.html">grpc~ServerReadableStream</a></li><li><a href="grpc-ServerUnaryCall.html">grpc~ServerUnaryCall</a></li><li><a href="grpc-ServerWritableStream.html">grpc~ServerWritableStream</a></li>
  36. </ul>
  37. </li>
  38. <li class="dropdown">
  39. <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
  40. <ul class="dropdown-menu ">
  41. <li><a href="grpc-ClientDuplexStream.html#event:metadata">grpc~ClientDuplexStream#metadata</a></li><li><a href="grpc-ClientDuplexStream.html#event:status">grpc~ClientDuplexStream#status</a></li><li><a href="grpc-ClientReadableStream.html#event:metadata">grpc~ClientReadableStream#metadata</a></li><li><a href="grpc-ClientReadableStream.html#event:status">grpc~ClientReadableStream#status</a></li><li><a href="grpc-ClientUnaryCall.html#event:metadata">grpc~ClientUnaryCall#event:metadata</a></li><li><a href="grpc-ClientUnaryCall.html#event:status">grpc~ClientUnaryCall#event:status</a></li><li><a href="grpc-ClientWritableStream.html#event:metadata">grpc~ClientWritableStream#metadata</a></li><li><a href="grpc-ClientWritableStream.html#event:status">grpc~ClientWritableStream#status</a></li><li><a href="grpc-ServerDuplexStream.html#~event:cancelled">grpc~ServerDuplexStream~event:cancelled</a></li><li><a href="grpc-ServerReadableStream.html#~event:cancelled">grpc~ServerReadableStream~event:cancelled</a></li><li><a href="grpc-ServerUnaryCall.html#~event:cancelled">grpc~ServerUnaryCall~event:cancelled</a></li><li><a href="grpc-ServerWritableStream.html#~event:cancelled">grpc~ServerWritableStream~event:cancelled</a></li>
  42. </ul>
  43. </li>
  44. <li class="dropdown">
  45. <a href="externals.list.html" class="dropdown-toggle" data-toggle="dropdown">Externals<b class="caret"></b></a>
  46. <ul class="dropdown-menu ">
  47. <li><a href="external-Duplex.html">Duplex</a></li><li><a href="external-EventEmitter.html">EventEmitter</a></li><li><a href="external-GoogleCredential.html">GoogleCredential</a></li><li><a href="external-Readable.html">Readable</a></li><li><a href="external-Writable.html">Writable</a></li>
  48. </ul>
  49. </li>
  50. </ul>
  51. <div class="col-sm-3 col-md-3">
  52. <form class="navbar-form" role="search">
  53. <div class="input-group">
  54. <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
  55. <div class="input-group-btn">
  56. <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="container" id="toc-content">
  65. <div class="row">
  66. <div class="col-md-8">
  67. <div id="main">
  68. <section class="readme-section">
  69. <article><p><a href="https://www.npmjs.com/package/grpc"><img src="https://img.shields.io/npm/v/grpc.svg" alt="npm"></a></p>
  70. <h1>Node.js gRPC Library</h1><h2>PREREQUISITES</h2><ul>
  71. <li><p><code>node</code>: This requires <code>node</code> to be installed, version <code>4.0</code> or above. If you instead have the <code>nodejs</code> executable on Debian, you should install the <a href="https://packages.debian.org/sid/nodejs-legacy"><code>nodejs-legacy</code></a> package.</p>
  72. </li>
  73. <li><p><strong>Note:</strong> If you installed <code>node</code> via a package manager and the version is still less than <code>4.0</code>, try directly installing it from <a href="https://nodejs.org">nodejs.org</a>.</p>
  74. </li>
  75. </ul>
  76. <h2>INSTALLATION</h2><p>Install the gRPC NPM package</p>
  77. <pre class="prettyprint source lang-sh"><code>npm install grpc</code></pre><h2>BUILD FROM SOURCE</h2><ol>
  78. <li>Clone <a href="https://github.com/grpc/grpc">the grpc Git Repository</a>.</li>
  79. <li><p>Run <code>npm install --build-from-source</code> from the repository root.</p>
  80. </li>
  81. <li><p><strong>Note:</strong> On Windows, this might fail due to <a href="https://github.com/nodejs/node/issues/4932">nodejs issue #4932</a> in which case, you will see something like the following in <code>npm install</code>'s output (towards the very beginning):</p>
  82. <pre class="prettyprint source"><code> ..
  83. Building the projects in this solution one at a time. To enable parallel build, please add the &quot;/m&quot; switch.
  84. WINDOWS_BUILD_WARNING
  85. &quot;..\IMPORTANT: Due to https:\github.com\nodejs\node\issues\4932, to build this library on Windows, you must first remove C:\Users\jenkins\.node-gyp\4.4.0\include\node\openssl&quot;
  86. ...
  87. ..</code></pre><p> To fix this, you will have to delete the folder <code>C:\Users\&lt;username&gt;\.node-gyp\&lt;node_version&gt;\include\node\openssl</code> and retry <code>npm install</code></p>
  88. </li>
  89. </ol>
  90. <h2>API DOCUMENTATION</h2><p>See the <a href="https://grpc.io/grpc/node/">API Documentation</a>.</p>
  91. <h2>TESTING</h2><p>To run the test suite, simply run <code>npm test</code> in the install location.</p></article>
  92. </section>
  93. </div>
  94. </div>
  95. <div class="clearfix"></div>
  96. <div class="col-md-3">
  97. <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="modal fade" id="searchResults">
  102. <div class="modal-dialog">
  103. <div class="modal-content">
  104. <div class="modal-header">
  105. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  106. <h4 class="modal-title">Search results</h4>
  107. </div>
  108. <div class="modal-body"></div>
  109. <div class="modal-footer">
  110. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  111. </div>
  112. </div><!-- /.modal-content -->
  113. </div><!-- /.modal-dialog -->
  114. </div>
  115. <footer>
  116. <span class="jsdoc-message">
  117. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
  118. on 2018-01-16T12:05:13-05:00
  119. using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
  120. </span>
  121. </footer>
  122. <script src="scripts/docstrap.lib.js"></script>
  123. <script src="scripts/toc.js"></script>
  124. <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
  125. <script>
  126. $( function () {
  127. $( "[id*='$']" ).each( function () {
  128. var $this = $( this );
  129. $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
  130. } );
  131. $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
  132. var $this = $( this );
  133. var example = $this.find( "code" );
  134. exampleText = example.html();
  135. var lang = /{@lang (.*?)}/.exec( exampleText );
  136. if ( lang && lang[1] ) {
  137. exampleText = exampleText.replace( lang[0], "" );
  138. example.html( exampleText );
  139. lang = lang[1];
  140. } else {
  141. var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
  142. lang = langClassMatch ? langClassMatch[1] : "javascript";
  143. }
  144. if ( lang ) {
  145. $this
  146. .addClass( "sunlight-highlight-" + lang )
  147. .addClass( "linenums" )
  148. .html( example.html() );
  149. }
  150. } );
  151. Sunlight.highlightAll( {
  152. lineNumbers : false,
  153. showMenu : true,
  154. enableDoclinks : true
  155. } );
  156. $.catchAnchorLinks( {
  157. navbarOffset: 10
  158. } );
  159. $( "#toc" ).toc( {
  160. anchorName : function ( i, heading, prefix ) {
  161. return $( heading ).attr( "id" ) || ( prefix + i );
  162. },
  163. selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
  164. showAndHide : false,
  165. smoothScrolling: true
  166. } );
  167. $( "#main span[id^='toc']" ).addClass( "toc-shim" );
  168. $( '.dropdown-toggle' ).dropdown();
  169. $( "table" ).each( function () {
  170. var $this = $( this );
  171. $this.addClass('table');
  172. } );
  173. } );
  174. </script>
  175. <!--Navigation and Symbol Display-->
  176. <!--Google Analytics-->
  177. <script type="text/javascript">
  178. $(document).ready(function() {
  179. SearcherDisplay.init();
  180. });
  181. </script>
  182. </body>
  183. </html>