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

Unified Diff: server/internal/logdog/service/service.go

Issue 1968063003: LogDog: Use per-project settings for archival. (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-coordinator-useconfig
Patch Set: Created 4 years, 7 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: server/internal/logdog/service/service.go
diff --git a/server/internal/logdog/service/service.go b/server/internal/logdog/service/service.go
index 8ce74b8dca157982849adbcecb5b5cd6155cdb60..711043e21056534df6826ed2558292b1c7a3a91c 100644
--- a/server/internal/logdog/service/service.go
+++ b/server/internal/logdog/service/service.go
@@ -19,6 +19,7 @@ import (
"github.com/luci/luci-go/client/authcli"
"github.com/luci/luci-go/common/api/logdog_coordinator/services/v1"
"github.com/luci/luci-go/common/auth"
+ luciConfig "github.com/luci/luci-go/common/config"
"github.com/luci/luci-go/common/gcloud/gs"
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/logging/gologger"
@@ -309,6 +310,13 @@ func (s *Service) Config() *svcconfig.Config {
return s.config.Config()
}
+// ProjectConfig returns the cached project configuration.
+//
+// If the project configuration is not available, nil will be returned.
+func (s *Service) ProjectConfig(c context.Context, proj luciConfig.ProjectName) (*svcconfig.ProjectConfig, error) {
+ return s.config.ProjectConfig(c, proj)
+}
+
// Coordinator returns the cached Coordinator client.
func (s *Service) Coordinator() logdog.ServicesClient {
return s.coord

Powered by Google App Engine
This is Rietveld 408576698