Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1215)

Side by Side Diff: server/static/rpcexplorer/rpc-service.html

Issue 1695893004: RPC Explorer (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@rpcepxlorer-deps
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 ~ // Copyright 2016 The Chromium Authors. All rights reserved.
3 ~ // Use of this source code is governed by a BSD-style license that can be
4 ~ // found in the LICENSE file.
5 ~
6 -->
7
8 <link rel="import" href="/static/common/third_party/polymer/polymer.html">
9
10 <link rel="import" href="rpc-descriptor-util.html">
11
12 <!-- The `rpc-service` is a service page -->
13 <dom-module id="rpc-service">
14 <template>
15 <p>Methods:</p>
16 <ul>
17 <template is="dom-repeat" items="[[serviceDesc.method]]">
18 <li>
19 <a href="#/services/[[service]]/[[item.name]]">[[item.name]]</a>
20 <span class="text-muted comment">[[item.source_code_info.leading_comme nts]]</span>
21 </li>
22 </template>
23 </ul>
24 </template>
25
26 <script>
27 'use strict';
28
29 Polymer({
30 is: 'rpc-service',
31 properties: {
32 description: Object, // FileDescriptorSet message
33 service: String,
34 serviceDesc: {
35 type: Object, // ServiceDescriptorProto message
36 computed: '_resolveServiceDesc(description, service)'
37 }
38 },
39
40 _resolveServiceDesc: function(desc, service) {
41 var searchResult = rpcExplorer.descUtil.resolve(desc, service);
42 if (!searchResult || searchResult.type != 'service') {
43 return null;
44 }
45 return searchResult.desc;
46 }
47 });
48 </script>
49 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698