| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto3"; | 5 syntax = "proto3"; |
| 6 | 6 |
| 7 package logdog; | 7 package logdog; |
| 8 | 8 |
| 9 import "google/protobuf/timestamp.proto"; | |
| 10 | |
| 11 // LogStreamState is the log stream state value communicated to services. | 9 // LogStreamState is the log stream state value communicated to services. |
| 12 message LogStreamState { | 10 message LogStreamState { |
| 13 // Path is the log stream's path. | 11 // Path is the log stream's path. |
| 14 string path = 1; | 12 string path = 1; |
| 15 // The log stream's secret. | 13 // The log stream's secret. |
| 16 // | 14 // |
| 17 // Note that the secret is returned! This is okay, since this endpoint is only | 15 // Note that the secret is returned! This is okay, since this endpoint is only |
| 18 // accessible to trusted services. The secret can be cached by services to | 16 // accessible to trusted services. The secret can be cached by services to |
| 19 // validate stream information without needing to ping the Coordinator in | 17 // validate stream information without needing to ping the Coordinator in |
| 20 // between each update. | 18 // between each update. |
| 21 bytes secret = 2; | 19 bytes secret = 2; |
| 22 | 20 |
| 23 // ProtoVersion is the protobuf version for this stream. | 21 // ProtoVersion is the protobuf version for this stream. |
| 24 string proto_version = 3; | 22 string proto_version = 3; |
| 25 | 23 |
| 26 // The stream index of the log stream's terminal message. If the value i
s -1, | 24 // The stream index of the log stream's terminal message. If the value i
s -1, |
| 27 // the log is still streaming. | 25 // the log is still streaming. |
| 28 int64 terminal_index = 4; | 26 int64 terminal_index = 4; |
| 29 | 27 |
| 30 // If the log stream has been archived. | 28 // If the log stream has been archived. |
| 31 bool archived = 5; | 29 bool archived = 5; |
| 32 // If the log stream has been purged. | 30 // If the log stream has been purged. |
| 33 bool purged = 6; | 31 bool purged = 6; |
| 34 } | 32 } |
| OLD | NEW |