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