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 |