blob: 0b24b18811f6990668245cc988d3973344db6b9d [file] [log] [blame]
Copyright 2016 The LUCI Authors. All rights reserved.
Use of this source code is governed under the Apache License, Version 2.0
that can be found in the LICENSE file.
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import"
<link rel="import" href="rpc-descriptor-util.html">
<!-- The `rpc-service` is a service page -->
<dom-module id="rpc-service">
<template is="dom-repeat" items="[[serviceDesc.method]]" as="method">
<a is="html5-history-anchor" pushstate popstate
<span class="text-muted comment">
'use strict';
is: 'rpc-service',
properties: {
description: Object, // FileDescriptorSet message
service: String,
serviceDesc: {
type: Object, // ServiceDescriptorProto message
computed: '_resolveServiceDesc(description, service)'
_resolveServiceDesc: function(desc, service) {
var searchResult = rpcExplorer.descUtil.resolve(desc, service);
if (!searchResult || searchResult.type != 'service') {
return null;
return searchResult.desc;
_comment: function(method) {
return rpcExplorer.descUtil.normalizeComment(