global.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Global</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Global</h1>
  17. <section>
  18. <header>
  19. <h2></h2>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <dl class="details">
  24. </dl>
  25. </div>
  26. <h3 class="subsection-title">Members</h3>
  27. <h4 class="name" id="callError"><span class="type-signature"></span>callError<span class="type-signature"></span></h4>
  28. <div class="description">
  29. Call error name to code number mapping
  30. </div>
  31. <dl class="details">
  32. <dt class="tag-source">Source:</dt>
  33. <dd class="tag-source"><ul class="dummy"><li>
  34. <a href="index.js.html">index.js</a>, <a href="index.js.html#line148">line 148</a>
  35. </li></ul></dd>
  36. </dl>
  37. <h4 class="name" id="credentials"><span class="type-signature"></span>credentials<span class="type-signature"></span></h4>
  38. <div class="description">
  39. Credentials factories
  40. </div>
  41. <dl class="details">
  42. <dt class="tag-source">Source:</dt>
  43. <dd class="tag-source"><ul class="dummy"><li>
  44. <a href="index.js.html">index.js</a>, <a href="index.js.html#line158">line 158</a>
  45. </li></ul></dd>
  46. </dl>
  47. <h4 class="name" id="getClientChannel"><span class="type-signature"></span>getClientChannel<span class="type-signature"></span></h4>
  48. <dl class="details">
  49. <dt class="tag-source">Source:</dt>
  50. <dd class="tag-source"><ul class="dummy"><li>
  51. <a href="index.js.html">index.js</a>, <a href="index.js.html#line173">line 173</a>
  52. </li></ul></dd>
  53. <dt class="tag-see">See:</dt>
  54. <dd class="tag-see">
  55. <ul>
  56. <li><a href="module-src_client.html#.getClientChannel">module:src/client.getClientChannel</a></li>
  57. </ul>
  58. </dd>
  59. </dl>
  60. <h4 class="name" id="makeGenericClientConstructor"><span class="type-signature"></span>makeGenericClientConstructor<span class="type-signature"></span></h4>
  61. <dl class="details">
  62. <dt class="tag-source">Source:</dt>
  63. <dd class="tag-source"><ul class="dummy"><li>
  64. <a href="index.js.html">index.js</a>, <a href="index.js.html#line168">line 168</a>
  65. </li></ul></dd>
  66. <dt class="tag-see">See:</dt>
  67. <dd class="tag-see">
  68. <ul>
  69. <li><a href="module-src_client.html#.makeClientConstructor">module:src/client.makeClientConstructor</a></li>
  70. </ul>
  71. </dd>
  72. </dl>
  73. <h4 class="name" id="Metadata"><span class="type-signature"></span>Metadata<span class="type-signature"></span></h4>
  74. <dl class="details">
  75. <dt class="tag-source">Source:</dt>
  76. <dd class="tag-source"><ul class="dummy"><li>
  77. <a href="index.js.html">index.js</a>, <a href="index.js.html#line133">line 133</a>
  78. </li></ul></dd>
  79. <dt class="tag-see">See:</dt>
  80. <dd class="tag-see">
  81. <ul>
  82. <li><a href="module-src_metadata.html">module:src/metadata</a></li>
  83. </ul>
  84. </dd>
  85. </dl>
  86. <h4 class="name" id="propagate"><span class="type-signature"></span>propagate<span class="type-signature"></span></h4>
  87. <div class="description">
  88. Propagate flag name to number mapping
  89. </div>
  90. <dl class="details">
  91. <dt class="tag-source">Source:</dt>
  92. <dd class="tag-source"><ul class="dummy"><li>
  93. <a href="index.js.html">index.js</a>, <a href="index.js.html#line143">line 143</a>
  94. </li></ul></dd>
  95. </dl>
  96. <h4 class="name" id="Server"><span class="type-signature"></span>Server<span class="type-signature"></span></h4>
  97. <dl class="details">
  98. <dt class="tag-source">Source:</dt>
  99. <dd class="tag-source"><ul class="dummy"><li>
  100. <a href="index.js.html">index.js</a>, <a href="index.js.html#line128">line 128</a>
  101. </li></ul></dd>
  102. <dt class="tag-see">See:</dt>
  103. <dd class="tag-see">
  104. <ul>
  105. <li><a href="module-src_server.html#.Server">module:src/server.Server</a></li>
  106. </ul>
  107. </dd>
  108. </dl>
  109. <h4 class="name" id="ServerCredentials"><span class="type-signature"></span>ServerCredentials<span class="type-signature"></span></h4>
  110. <div class="description">
  111. ServerCredentials factories
  112. </div>
  113. <dl class="details">
  114. <dt class="tag-source">Source:</dt>
  115. <dd class="tag-source"><ul class="dummy"><li>
  116. <a href="index.js.html">index.js</a>, <a href="index.js.html#line163">line 163</a>
  117. </li></ul></dd>
  118. </dl>
  119. <h4 class="name" id="status"><span class="type-signature"></span>status<span class="type-signature"></span></h4>
  120. <div class="description">
  121. Status name to code number mapping
  122. </div>
  123. <dl class="details">
  124. <dt class="tag-source">Source:</dt>
  125. <dd class="tag-source"><ul class="dummy"><li>
  126. <a href="index.js.html">index.js</a>, <a href="index.js.html#line138">line 138</a>
  127. </li></ul></dd>
  128. </dl>
  129. <h4 class="name" id="waitForClientReady"><span class="type-signature"></span>waitForClientReady<span class="type-signature"></span></h4>
  130. <dl class="details">
  131. <dt class="tag-source">Source:</dt>
  132. <dd class="tag-source"><ul class="dummy"><li>
  133. <a href="index.js.html">index.js</a>, <a href="index.js.html#line178">line 178</a>
  134. </li></ul></dd>
  135. <dt class="tag-see">See:</dt>
  136. <dd class="tag-see">
  137. <ul>
  138. <li><a href="module-src_client.html#.waitForClientReady">module:src/client.waitForClientReady</a></li>
  139. </ul>
  140. </dd>
  141. </dl>
  142. <h4 class="name" id="writeFlags"><span class="type-signature"></span>writeFlags<span class="type-signature"></span></h4>
  143. <div class="description">
  144. Write flag name to code number mapping
  145. </div>
  146. <dl class="details">
  147. <dt class="tag-source">Source:</dt>
  148. <dd class="tag-source"><ul class="dummy"><li>
  149. <a href="index.js.html">index.js</a>, <a href="index.js.html#line153">line 153</a>
  150. </li></ul></dd>
  151. </dl>
  152. <h3 class="subsection-title">Methods</h3>
  153. <h4 class="name" id="load"><span class="type-signature"></span>load<span class="signature">(filename, format<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object.&lt;string, *>}</span></h4>
  154. <div class="description">
  155. Load a gRPC object from a .proto file. The options object can provide the
  156. following options:
  157. - convertFieldsToCamelCase: Loads this file with that option on protobuf.js
  158. set as specified. See
  159. https://github.com/dcodeIO/protobuf.js/wiki/Advanced-options for details
  160. - binaryAsBase64: deserialize bytes values as base64 strings instead of
  161. Buffers. Defaults to false
  162. - longsAsStrings: deserialize long values as strings instead of objects.
  163. Defaults to true
  164. - deprecatedArgumentOrder: Use the beta method argument order for client
  165. methods, with optional arguments after the callback. Defaults to false.
  166. This option is only a temporary stopgap measure to smooth an API breakage.
  167. It is deprecated, and new code should not use it.
  168. </div>
  169. <h5>Parameters:</h5>
  170. <table class="params">
  171. <thead>
  172. <tr>
  173. <th>Name</th>
  174. <th>Type</th>
  175. <th>Attributes</th>
  176. <th class="last">Description</th>
  177. </tr>
  178. </thead>
  179. <tbody>
  180. <tr>
  181. <td class="name"><code>filename</code></td>
  182. <td class="type">
  183. <span class="param-type">string</span>
  184. |
  185. <span class="param-type">Object</span>
  186. </td>
  187. <td class="attributes">
  188. </td>
  189. <td class="description last">The file to load</td>
  190. </tr>
  191. <tr>
  192. <td class="name"><code>format</code></td>
  193. <td class="type">
  194. <span class="param-type">string</span>
  195. </td>
  196. <td class="attributes">
  197. &lt;optional><br>
  198. </td>
  199. <td class="description last">The file format to expect. Must be either 'proto' or
  200. 'json'. Defaults to 'proto'</td>
  201. </tr>
  202. <tr>
  203. <td class="name"><code>options</code></td>
  204. <td class="type">
  205. <span class="param-type">Object</span>
  206. </td>
  207. <td class="attributes">
  208. &lt;optional><br>
  209. </td>
  210. <td class="description last">Options to apply to the loaded file</td>
  211. </tr>
  212. </tbody>
  213. </table>
  214. <dl class="details">
  215. <dt class="tag-source">Source:</dt>
  216. <dd class="tag-source"><ul class="dummy"><li>
  217. <a href="index.js.html">index.js</a>, <a href="index.js.html#line99">line 99</a>
  218. </li></ul></dd>
  219. </dl>
  220. <h5>Returns:</h5>
  221. <div class="param-desc">
  222. The resulting gRPC object
  223. </div>
  224. <dl>
  225. <dt>
  226. Type
  227. </dt>
  228. <dd>
  229. <span class="param-type">Object.&lt;string, *></span>
  230. </dd>
  231. </dl>
  232. <h4 class="name" id="loadObject"><span class="type-signature"></span>loadObject<span class="signature">(value, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object.&lt;string, *>}</span></h4>
  233. <div class="description">
  234. Load a gRPC object from an existing ProtoBuf.Reflect object.
  235. </div>
  236. <h5>Parameters:</h5>
  237. <table class="params">
  238. <thead>
  239. <tr>
  240. <th>Name</th>
  241. <th>Type</th>
  242. <th>Attributes</th>
  243. <th class="last">Description</th>
  244. </tr>
  245. </thead>
  246. <tbody>
  247. <tr>
  248. <td class="name"><code>value</code></td>
  249. <td class="type">
  250. <span class="param-type">ProtoBuf.Reflect.Namespace</span>
  251. </td>
  252. <td class="attributes">
  253. </td>
  254. <td class="description last">The ProtoBuf object to load.</td>
  255. </tr>
  256. <tr>
  257. <td class="name"><code>options</code></td>
  258. <td class="type">
  259. <span class="param-type">Object</span>
  260. </td>
  261. <td class="attributes">
  262. &lt;optional><br>
  263. </td>
  264. <td class="description last">Options to apply to the loaded object</td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. <dl class="details">
  269. <dt class="tag-source">Source:</dt>
  270. <dd class="tag-source"><ul class="dummy"><li>
  271. <a href="index.js.html">index.js</a>, <a href="index.js.html#line61">line 61</a>
  272. </li></ul></dd>
  273. </dl>
  274. <h5>Returns:</h5>
  275. <div class="param-desc">
  276. The resulting gRPC object
  277. </div>
  278. <dl>
  279. <dt>
  280. Type
  281. </dt>
  282. <dd>
  283. <span class="param-type">Object.&lt;string, *></span>
  284. </dd>
  285. </dl>
  286. </article>
  287. </section>
  288. </div>
  289. <nav>
  290. <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-src_client.html">src/client</a></li><li><a href="module-src_common.html">src/common</a></li><li><a href="module-src_credentials.html">src/credentials</a></li><li><a href="module-src_metadata.html">src/metadata</a></li><li><a href="module-src_server.html">src/server</a></li></ul><h3>Classes</h3><ul><li><a href="module-src_client.makeClientConstructor-Client.html">Client</a></li><li><a href="module-src_client-ClientDuplexStream.html">ClientDuplexStream</a></li><li><a href="module-src_client-ClientReadableStream.html">ClientReadableStream</a></li><li><a href="module-src_client-ClientWritableStream.html">ClientWritableStream</a></li><li><a href="module-src_metadata-Metadata.html">Metadata</a></li><li><a href="module-src_server-Server.html">Server</a></li><li><a href="module-src_server-ServerDuplexStream.html">ServerDuplexStream</a></li><li><a href="module-src_server-ServerReadableStream.html">ServerReadableStream</a></li><li><a href="module-src_server-ServerWritableStream.html">ServerWritableStream</a></li></ul><h3>Global</h3><ul><li><a href="global.html#callError">callError</a></li><li><a href="global.html#credentials">credentials</a></li><li><a href="global.html#getClientChannel">getClientChannel</a></li><li><a href="global.html#load">load</a></li><li><a href="global.html#loadObject">loadObject</a></li><li><a href="global.html#makeGenericClientConstructor">makeGenericClientConstructor</a></li><li><a href="global.html#Metadata">Metadata</a></li><li><a href="global.html#propagate">propagate</a></li><li><a href="global.html#Server">Server</a></li><li><a href="global.html#ServerCredentials">ServerCredentials</a></li><li><a href="global.html#status">status</a></li><li><a href="global.html#waitForClientReady">waitForClientReady</a></li><li><a href="global.html#writeFlags">writeFlags</a></li></ul>
  291. </nav>
  292. <br class="clear">
  293. <footer>
  294. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Wed May 11 2016 18:17:25 GMT-0700 (PDT)
  295. </footer>
  296. <script> prettyPrint(); </script>
  297. <script src="scripts/linenumber.js"> </script>
  298. </body>
  299. </html>