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

Unified Diff: common/logdog/coordinator/client.go

Issue 1916013002: LogDog: Add project namespacing to `logdog_cat` (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-collector-butler
Patch Set: Rebase, project UI. 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
« no previous file with comments | « client/cmd/logdog_cat/main.go ('k') | common/logdog/coordinator/list.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/logdog/coordinator/client.go
diff --git a/common/logdog/coordinator/client.go b/common/logdog/coordinator/client.go
index 91189d528ed8c7e08cd8fe016619f291ef167027..c856416135827aef08b9d41a23b0d6adda1a2129 100644
--- a/common/logdog/coordinator/client.go
+++ b/common/logdog/coordinator/client.go
@@ -7,6 +7,7 @@ package coordinator
import (
"github.com/luci/luci-go/common/api/logdog_coordinator/logs/v1"
"github.com/luci/luci-go/common/auth"
+ "github.com/luci/luci-go/common/config"
"github.com/luci/luci-go/common/logdog/types"
"github.com/luci/luci-go/common/prpc"
)
@@ -25,12 +26,15 @@ var (
type Client struct {
// C is the underlying LogsClient interface.
C logdog.LogsClient
+
+ project config.ProjectName
}
// NewClient returns a new Client instance bound to a pRPC Client.
-func NewClient(c *prpc.Client) *Client {
+func NewClient(c *prpc.Client, project config.ProjectName) *Client {
return &Client{
- C: logdog.NewLogsPRPCClient(c),
+ C: logdog.NewLogsPRPCClient(c),
+ project: project,
}
}
« no previous file with comments | « client/cmd/logdog_cat/main.go ('k') | common/logdog/coordinator/list.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698