blob: 2c5b08ca8860ffde03087095f38700541f65374e [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001// 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
6syntax = "proto3";
7
8package monorail;
9
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020010option go_package = "infra/monorailv2/api/api_proto;monorail";
11
Copybara854996b2021-09-07 19:36:02 +000012service Sitewide {
13 rpc RefreshToken (RefreshTokenRequest) returns (RefreshTokenResponse) {}
14 rpc GetServerStatus (GetServerStatusRequest) returns (GetServerStatusResponse) {}
15}
16
17
18// Next available tag: 4
19message RefreshTokenRequest {
20 string token = 2;
21 string token_path = 3;
22}
23
24
25// Next available tag: 3
26message RefreshTokenResponse {
27 string token = 1;
28 uint32 token_expires_sec = 2;
29}
30
31
32// Next available tag: 1
33message GetServerStatusRequest {
34}
35
36
37// Next available tag: 4
38message GetServerStatusResponse {
39 string banner_message = 1;
40 fixed32 banner_time = 2;
41 bool read_only = 3;
42}