Chromium Code Reviews

Side by Side Diff: logdog/common/storage/bigtable/bigtable.go

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package bigtable 5 package bigtable
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "time" 9 "time"
10 10
11 "cloud.google.com/go/bigtable"
11 "github.com/luci/luci-go/grpc/grpcutil" 12 "github.com/luci/luci-go/grpc/grpcutil"
12 "github.com/luci/luci-go/logdog/common/storage" 13 "github.com/luci/luci-go/logdog/common/storage"
13 "golang.org/x/net/context" 14 "golang.org/x/net/context"
14 "google.golang.org/cloud/bigtable"
15 ) 15 )
16 16
17 const ( 17 const (
18 logColumnFamily = "log" 18 logColumnFamily = "log"
19 19
20 // The data column stores raw low row data (RecordIO blob). 20 // The data column stores raw low row data (RecordIO blob).
21 logColumn = "data" 21 logColumn = "data"
22 logColName = logColumnFamily + ":" + logColumn 22 logColName = logColumnFamily + ":" + logColumn
23 ) 23 )
24 24
(...skipping 149 matching lines...)
174 174
175 // Get the specific ReadItem for our column 175 // Get the specific ReadItem for our column
176 colName := fmt.Sprintf("%s:%s", family, column) 176 colName := fmt.Sprintf("%s:%s", family, column)
177 for _, item := range items { 177 for _, item := range items {
178 if item.Column == colName { 178 if item.Column == colName {
179 return &item 179 return &item
180 } 180 }
181 } 181 }
182 return nil 182 return nil
183 } 183 }
OLDNEW

Powered by Google App Engine