5 <title>JSDoc: Class: Service</title>
7 <script src="scripts/prettify/prettify.js"> </script>
8 <script src="scripts/prettify/lang-css.js"> </script>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12 <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13 <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
20 <h1 class="page-title">Class: Service</h1>
32 <span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.Builder.html">.Builder</a>.</span>
37 <div class="class-description"><p>Barebone of all runtime services.</p></div>
43 <div class="container-overview">
51 <h4 class="name" id="Service"><span class="type-signature"></span>new Service<span class="signature">(rpcImpl<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
57 <div class="description">
58 <p>Constructs a new runtime Service.</p>
72 <table class="params">
87 <th class="last">Description</th>
96 <td class="name"><code>rpcImpl</code></td>
102 <span class="param-type">function</span>
109 <td class="attributes">
122 <td class="description last"><p>RPC implementation receiving the method name and the message</p></td>
161 <dt class="tag-source">Source:</dt>
162 <dd class="tag-source"><ul class="dummy"><li>
163 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4005">line 4005</a>
190 <div class="param-desc">
191 <p>If the service cannot be created</p>
202 <span class="param-type">Error</span>
232 <h3 class="subsection-title">Members</h3>
236 <h4 class="name" id=".$options"><span class="type-signature">(static) </span>$options<span class="type-signature"> :Object.<string, *></span></h4>
241 <div class="description">
242 <p>Service options.</p>
251 <span class="param-type">Object.<string, *></span>
288 <dt class="tag-source">Source:</dt>
289 <dd class="tag-source"><ul class="dummy"><li>
290 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4108">line 4108</a>
308 <h4 class="name" id=".$type"><span class="type-signature">(static, non-null) </span>$type<span class="type-signature"> :<a href="ProtoBuf.Reflect.Service.html">ProtoBuf.Reflect.Service</a></span></h4>
313 <div class="description">
314 <p>Reflection type.</p>
323 <span class="param-type"><a href="ProtoBuf.Reflect.Service.html">ProtoBuf.Reflect.Service</a></span>
360 <dt class="tag-source">Source:</dt>
361 <dd class="tag-source"><ul class="dummy"><li>
362 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4124">line 4124</a>
380 <h4 class="name" id="$options"><span class="type-signature"></span>$options<span class="type-signature"> :Object.<string, *></span></h4>
385 <div class="description">
386 <p>Service options.</p>
395 <span class="param-type">Object.<string, *></span>
432 <dt class="tag-source">Source:</dt>
433 <dd class="tag-source"><ul class="dummy"><li>
434 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4116">line 4116</a>
452 <h4 class="name" id="$type"><span class="type-signature">(non-null) </span>$type<span class="type-signature"> :<a href="ProtoBuf.Reflect.Service.html">ProtoBuf.Reflect.Service</a></span></h4>
457 <div class="description">
458 <p>Reflection type.</p>
467 <span class="param-type"><a href="ProtoBuf.Reflect.Service.html">ProtoBuf.Reflect.Service</a></span>
504 <dt class="tag-source">Source:</dt>
505 <dd class="tag-source"><ul class="dummy"><li>
506 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4132">line 4132</a>
524 <h4 class="name" id="rpcImpl"><span class="type-signature">(non-null) </span>rpcImpl<span class="type-signature"> :function</span></h4>
529 <div class="description">
530 <p>Service implementation.</p>
539 <span class="param-type">function</span>
576 <dt class="tag-source">Source:</dt>
577 <dd class="tag-source"><ul class="dummy"><li>
578 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4016">line 4016</a>
598 <h3 class="subsection-title">Methods</h3>
605 <h4 class="name" id=".%5BMethod%5D"><span class="type-signature">(abstract, static) </span>[Method]<span class="signature">(rpcImpl<span class="signature-attributes">non-null</span>, req, callback)</span><span class="type-signature"></span></h4>
611 <div class="description">
612 <p>Asynchronously performs an RPC call using the given RPC implementation.</p>
626 <table class="params">
639 <th class="last">Description</th>
648 <td class="name"><code>rpcImpl</code></td>
654 <span class="param-type">function</span>
664 <td class="description last"><p>RPC implementation</p></td>
671 <td class="name"><code>req</code></td>
677 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
687 <td class="description last"><p>Request</p></td>
694 <td class="name"><code>callback</code></td>
700 <span class="param-type">function</span>
710 <td class="description last"><p>Callback receiving
711 the error if any and the response either as a pre-parsed message or as its raw bytes</p></td>
750 <dt class="tag-source">Source:</dt>
751 <dd class="tag-source"><ul class="dummy"><li>
752 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4036">line 4036</a>
783 <h4 class="name" id="%5BMethod%5D"><span class="type-signature">(abstract) </span>[Method]<span class="signature">(req, callback)</span><span class="type-signature"></span></h4>
789 <div class="description">
790 <p>Asynchronously performs an RPC call using the instance's RPC implementation.</p>
804 <table class="params">
817 <th class="last">Description</th>
826 <td class="name"><code>req</code></td>
832 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
842 <td class="description last"><p>Request</p></td>
849 <td class="name"><code>callback</code></td>
855 <span class="param-type">function</span>
865 <td class="description last"><p>Callback receiving
866 the error if any and the response either as a pre-parsed message or as its raw bytes</p></td>
905 <dt class="tag-source">Source:</dt>
906 <dd class="tag-source"><ul class="dummy"><li>
907 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4047">line 4047</a>
949 <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
955 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
958 <script> prettyPrint(); </script>
959 <script src="scripts/linenumber.js"> </script>