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

Unified Diff: logdog/client/cmd/logdog_annotee/filesystemClient.go

Issue 2456953003: LogDog: Update client/bootstrap to generate URLs. (Closed)
Patch Set: Winders Created 4 years, 2 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
« no previous file with comments | « logdog/client/butlerlib/streamproto/properties_test.go ('k') | logdog/client/cmd/logdog_butler/stream.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/cmd/logdog_annotee/filesystemClient.go
diff --git a/logdog/client/cmd/logdog_annotee/filesystemClient.go b/logdog/client/cmd/logdog_annotee/filesystemClient.go
index f0a4e554f94356d6c449c68b9fe20fe5801f493b..7470032986fe937f4ab30f1fe3c367f952b00a46 100644
--- a/logdog/client/cmd/logdog_annotee/filesystemClient.go
+++ b/logdog/client/cmd/logdog_annotee/filesystemClient.go
@@ -74,6 +74,7 @@ func (c *filesystemClient) getFilename(base, ext string) string {
func (c *filesystemClient) NewStream(f streamproto.Flags) (streamclient.Stream, error) {
s := filesystemClientStream{
filesystemClient: c,
+ props: f.Properties(),
baseName: sanitize(string(f.Name)),
contentType: f.ContentType,
streamType: logpb.StreamType(f.Type),
@@ -86,6 +87,7 @@ func (c *filesystemClient) NewStream(f streamproto.Flags) (streamclient.Stream,
type filesystemClientStream struct {
*filesystemClient
+ props *streamproto.Properties
baseName string
contentType string
streamType logpb.StreamType
@@ -172,3 +174,5 @@ func (s *filesystemClientStream) Close() error {
}
return nil
}
+
+func (s *filesystemClientStream) Properties() *streamproto.Properties { return s.props.Clone() }
« no previous file with comments | « logdog/client/butlerlib/streamproto/properties_test.go ('k') | logdog/client/cmd/logdog_butler/stream.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698