influxdb/query/plan/storage.go

21 lines
310 B
Go
Raw Normal View History

2018-05-21 21:13:54 +00:00
package plan
import "time"
type Storage interface {
ShardMapping() ShardMap
}
// ShardMap is a mapping of database names to list of shards for that database.
type ShardMap map[string][]Shard
type Shard struct {
Node string
Range TimeRange
}
type TimeRange struct {
Start time.Time
Stop time.Time
}