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