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

Unified Diff: common/api/logdog_coordinator/services/v1/service.pb.go

Issue 1863973002: LogDog: Update to archival V2. (Closed) Base URL: https://github.com/luci/luci-go@grpcutil-errors
Patch Set: Fix proto comment. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: common/api/logdog_coordinator/services/v1/service.pb.go
diff --git a/common/api/logdog_coordinator/services/v1/service.pb.go b/common/api/logdog_coordinator/services/v1/service.pb.go
index 5c28b8e676f6638a92fb85b3bd2fbde16665e7d2..84a579765e791dcd4ca3c67697d3400c1e82e62a 100644
--- a/common/api/logdog_coordinator/services/v1/service.pb.go
+++ b/common/api/logdog_coordinator/services/v1/service.pb.go
@@ -30,6 +30,7 @@ import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import logpb "github.com/luci/luci-go/common/proto/logdog/logpb"
+import google_protobuf1 "github.com/luci/luci-go/common/proto/google"
import google_protobuf2 "github.com/luci/luci-go/common/proto/google"
import (
@@ -133,6 +134,11 @@ type LoadStreamResponse struct {
// If requested, the serialized log stream descriptor. The protobuf version
// of this descriptor will match the "proto_version" field in "state".
Desc []byte `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
+ // The age of the log stream.
+ Age *google_protobuf1.Duration `protobuf:"bytes,3,opt,name=age" json:"age,omitempty"`
+ // The archival key of the log stream. If this key doesn't match the key in
+ // the archival request, the request is superfluous and should be deleted.
+ ArchivalKey []byte `protobuf:"bytes,4,opt,name=archival_key,json=archivalKey,proto3" json:"archival_key,omitempty"`
}
func (m *LoadStreamResponse) Reset() { *m = LoadStreamResponse{} }
@@ -147,6 +153,13 @@ func (m *LoadStreamResponse) GetState() *LogStreamState {
return nil
}
+func (m *LoadStreamResponse) GetAge() *google_protobuf1.Duration {
+ if m != nil {
+ return m.Age
+ }
+ return nil
+}
+
// TerminateStreamRequest is the set of caller-supplied data for the
// TerminateStream service endpoint.
type TerminateStreamRequest struct {
@@ -168,11 +181,16 @@ func (*TerminateStreamRequest) Descriptor() ([]byte, []int) { return fileDescrip
type ArchiveStreamRequest struct {
// The path of the log stream that was archived.
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
- // If true, the archive includes the full set of log stream entries between
- // [0..terminal_index].
- Complete bool `protobuf:"varint,2,opt,name=complete" json:"complete,omitempty"`
+ // The number of log entries that were archived.
+ LogEntryCount int64 `protobuf:"varint,2,opt,name=log_entry_count,json=logEntryCount" json:"log_entry_count,omitempty"`
// The highest log stream index that was archived.
TerminalIndex int64 `protobuf:"varint,3,opt,name=terminal_index,json=terminalIndex" json:"terminal_index,omitempty"`
+ // If not empty, there was an archival error.
+ //
+ // This field serves to indicate that an error occured (being non-empty) and
+ // to supply an value that will show up in the Coordinator ArchiveStream
+ // endpoint logs.
+ Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
// The archive URL of the log stream's stream data.
StreamUrl string `protobuf:"bytes,10,opt,name=stream_url,json=streamUrl" json:"stream_url,omitempty"`
// The size of the log stream's stream data.
@@ -446,42 +464,47 @@ var _Services_serviceDesc = grpc.ServiceDesc{
}
var fileDescriptor0 = []byte{
- // 588 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x53, 0x5d, 0x6f, 0x12, 0x4d,
- 0x14, 0x0e, 0x94, 0x97, 0x17, 0x0e, 0x50, 0xed, 0x49, 0x4b, 0x60, 0x6b, 0x5b, 0x83, 0x31, 0xf1,
- 0x42, 0x97, 0x04, 0x2f, 0x9b, 0x98, 0x98, 0xda, 0x98, 0x26, 0x4d, 0x34, 0x8b, 0xf6, 0x52, 0xb2,
- 0x2c, 0xd3, 0x65, 0xe2, 0xb2, 0xb3, 0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0x8e, 0xda, 0x2e, 0xd4, 0xe3, 0x50, 0x86, 0x28, 0xdd,
+ 0x43, 0xe9, 0x7f, 0xfa, 0xac, 0x95, 0x2a, 0x2d, 0x52, 0x28, 0xdc, 0x47, 0x21, 0xc6, 0x6a, 0xdd,
+ 0xe0, 0xcf, 0x12, 0xd4, 0xed, 0x8a, 0x0b, 0xf2, 0x1a, 0x1a, 0xd3, 0x6f, 0x04, 0x69, 0xdf, 0xf2,
+ 0xc3, 0xb1, 0xfe, 0x9e, 0xb8, 0xdd, 0xca, 0x67, 0xb7, 0x3f, 0x27, 0xef, 0x61, 0xfd, 0xe6, 0x16,
+ 0x91, 0xdd, 0x2a, 0x78, 0xee, 0xde, 0xbb, 0x7b, 0x8b, 0x68, 0x9b, 0xf0, 0x10, 0xe0, 0xca, 0xf8,
+ 0xa4, 0x7b, 0xe5, 0xf0, 0x99, 0x55, 0x72, 0xdd, 0x79, 0x94, 0x4d, 0x72, 0x02, 0x1b, 0x33, 0xae,
+ 0x24, 0xd3, 0xba, 0xf3, 0xed, 0xea, 0x2e, 0xb8, 0x3b, 0x39, 0x86, 0xd6, 0x0d, 0xcb, 0x91, 0x07,
+ 0x55, 0xa2, 0x79, 0x4e, 0x5c, 0x94, 0x66, 0xb4, 0x86, 0xe7, 0x57, 0x7f, 0x03, 0x00, 0x00, 0xff,
+ 0xff, 0xc7, 0xcb, 0x5f, 0xb5, 0x33, 0x06, 0x00, 0x00,
}
« no previous file with comments | « common/api/logdog_coordinator/services/v1/service.proto ('k') | common/api/logdog_coordinator/services/v1/state.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698