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

Unified Diff: logdog/client/butler/streamserver/streamserver.go

Issue 2737603003: Butler stream servers can generate client address. (Closed)
Patch Set: better Created 3 years, 9 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: logdog/client/butler/streamserver/streamserver.go
diff --git a/logdog/client/butler/streamserver/streamserver.go b/logdog/client/butler/streamserver/streamserver.go
index e63f5c35bfc4835de97a59d2093f641a52696d8f..6754f67f7bfa68279f71a10958712e7c19793842 100644
--- a/logdog/client/butler/streamserver/streamserver.go
+++ b/logdog/client/butler/streamserver/streamserver.go
@@ -13,6 +13,13 @@ import (
// StreamServer is an interface to a backgound service that allows external
// processes to establish Butler streams.
type StreamServer interface {
+ // Address returns a string that can be used by the "streamclient" package to
+ // return a client for this StreamServer.
+ //
+ // Full package is:
+ // github.com/luci/luci-go/logdog/butlerlib/streamclient
+ Address() string
+
// Performs initial connection and setup, entering a listening state.
Listen() error
// Blocks, returning a new Stream when one is available. If the stream server

Powered by Google App Engine
This is Rietveld 408576698