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

Unified Diff: logdog/appengine/coordinator/endpoints/logs/get.go

Issue 2626433004: Move "common/config" common types into cfgtypes. (Closed)
Patch Set: Created 3 years, 11 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/appengine/coordinator/endpoints/logs/get.go
diff --git a/logdog/appengine/coordinator/endpoints/logs/get.go b/logdog/appengine/coordinator/endpoints/logs/get.go
index dc7bde6a8324b636f11c7e6660b5f47421676136..5ecde7ef43fdb87b67582ef8d23dadb8f62f4621 100644
--- a/logdog/appengine/coordinator/endpoints/logs/get.go
+++ b/logdog/appengine/coordinator/endpoints/logs/get.go
@@ -7,7 +7,6 @@ package logs
import (
"time"
- "github.com/luci/luci-go/common/config"
"github.com/luci/luci-go/common/errors"
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/proto/google"
@@ -18,6 +17,7 @@ import (
"github.com/luci/luci-go/logdog/appengine/coordinator"
"github.com/luci/luci-go/logdog/common/storage"
"github.com/luci/luci-go/logdog/common/types"
+ "github.com/luci/luci-go/luci_config/common/cfgtypes"
ds "github.com/luci/gae/service/datastore"
@@ -182,7 +182,7 @@ func (s *server) getLogs(c context.Context, req *logdog.GetRequest, resp *logdog
return nil
}
-func getHead(c context.Context, req *logdog.GetRequest, st coordinator.Storage, project config.ProjectName,
+func getHead(c context.Context, req *logdog.GetRequest, st coordinator.Storage, project cfgtypes.ProjectName,
path types.StreamPath, byteLimit int) ([]*logpb.LogEntry, error) {
log.Fields{
"project": project,
@@ -266,7 +266,7 @@ func getHead(c context.Context, req *logdog.GetRequest, st coordinator.Storage,
}
}
-func getTail(c context.Context, st coordinator.Storage, project config.ProjectName, path types.StreamPath) (
+func getTail(c context.Context, st coordinator.Storage, project cfgtypes.ProjectName, path types.StreamPath) (
[]*logpb.LogEntry, error) {
log.Fields{
"project": project,
« no previous file with comments | « logdog/appengine/coordinator/coordinatorTest/service.go ('k') | logdog/appengine/coordinator/endpoints/logs/get_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698