Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: common/logdog/protocol/butler.proto

Issue 1272893004: LogDog: Update protobufs, add support library. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package protocol; 5 package protocol;
6 6
7 import "log.proto"; 7 import "log.proto";
8 import "types.proto"; 8 import "types.proto";
9 9
10 /* 10 /*
11 * ButlerMetadata appears as a frame at the beginning of Butler published data
12 * to describe the remainder of the contents.
tandrii(chromium) 2015/08/11 17:41:37 I'm not sure that's the best way to achieve what y
dnj 2015/08/11 18:20:37 What do you mean?
13 */
14 message ButlerMetadata {
15 /*
16 * This enumerates the possible contents of published Butler data.
17 */
18 enum ContentType {
19 /* The published data is a ButlerLogBundle protobuf message. */
20 ButlerLogBundle = 1;
21 }
22 /* This is the type of data in the subsequent frame. */
23 optional ContentType type = 1;
24
25 /* If true, the content data is compressed. */
26 optional bool compressed = 2;
27 }
28
29
30 /*
11 * A message containing log data in transit from the Butler. 31 * A message containing log data in transit from the Butler.
12 * 32 *
13 * The Butler is capable of conserving bandwidth by bundling collected log 33 * The Butler is capable of conserving bandwidth by bundling collected log
14 * messages together into this protocol buffer. Based on Butler bundling 34 * messages together into this protocol buffer. Based on Butler bundling
15 * settings, this message can represent anything from a single LogRecord to 35 * settings, this message can represent anything from a single LogRecord to
16 * multiple LogRecords belonging to several different streams. 36 * multiple LogRecords belonging to several different streams.
17 * 37 *
18 * Entries in a Log Bundle are fully self-descriptive: no additional information 38 * Entries in a Log Bundle are fully self-descriptive: no additional information
19 * is needed to fully associate the contained data with its proper place in 39 * is needed to fully associate the contained data with its proper place in
20 * the source log stream. 40 * the source log stream.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 * registered with the Coordinator. The largest stream prefix in this Entry 91 * registered with the Coordinator. The largest stream prefix in this Entry
72 * will be bound the stream's LogEntry records to [0:largest_prefix]. Once 92 * will be bound the stream's LogEntry records to [0:largest_prefix]. Once
73 * all messages in that range have been received, the log may be archived. 93 * all messages in that range have been received, the log may be archived.
74 * 94 *
75 * Further log entries belonging to this stream with stream indices 95 * Further log entries belonging to this stream with stream indices
76 * exceeding the terminal log's index will be discarded. 96 * exceeding the terminal log's index will be discarded.
77 */ 97 */
78 optional bool terminal = 3; 98 optional bool terminal = 3;
79 99
80 /* 100 /*
101 * If terminal is true, this is the terminal stream index; that is, the last
102 * message index in the stream.
103 */
104 optional uint64 terminal_index = 4;
105
106 /*
81 * Log entries attached to this record. These must be sequential and in 107 * Log entries attached to this record. These must be sequential and in
82 * order. 108 * order.
83 * 109 *
84 * This is the main log entry content. 110 * This is the main log entry content.
85 */ 111 */
86 repeated protocol.LogEntry logs = 4; 112 repeated protocol.LogEntry logs = 5;
87 } 113 }
88 114
89 /** 115 /**
90 * Each Entry is an individual set of log records for a given log stream. 116 * Each Entry is an individual set of log records for a given log stream.
91 */ 117 */
92 repeated Entry entries = 5; 118 repeated Entry entries = 5;
93 } 119 }
OLDNEW
« no previous file with comments | « no previous file | common/logdog/protocol/butler.pb.go » ('j') | common/logdog/protocol/protoutil/utils.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698