Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file or at |
| 4 | // https://developers.google.com/open-source/licenses/bsd |
| 5 | |
| 6 | syntax = "proto3"; |
| 7 | |
| 8 | package monorail; |
| 9 | |
Adrià Vilanova MartÃnez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame] | 10 | option go_package = "infra/monorailv2/api/api_proto;monorail"; |
| 11 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 12 | service Sitewide { |
| 13 | rpc RefreshToken (RefreshTokenRequest) returns (RefreshTokenResponse) {} |
| 14 | rpc GetServerStatus (GetServerStatusRequest) returns (GetServerStatusResponse) {} |
| 15 | } |
| 16 | |
| 17 | |
| 18 | // Next available tag: 4 |
| 19 | message RefreshTokenRequest { |
| 20 | string token = 2; |
| 21 | string token_path = 3; |
| 22 | } |
| 23 | |
| 24 | |
| 25 | // Next available tag: 3 |
| 26 | message RefreshTokenResponse { |
| 27 | string token = 1; |
| 28 | uint32 token_expires_sec = 2; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | // Next available tag: 1 |
| 33 | message GetServerStatusRequest { |
| 34 | } |
| 35 | |
| 36 | |
| 37 | // Next available tag: 4 |
| 38 | message GetServerStatusResponse { |
| 39 | string banner_message = 1; |
| 40 | fixed32 banner_time = 2; |
| 41 | bool read_only = 3; |
| 42 | } |