Documentation ¶
Index ¶
Constants ¶
View Source
const Month_sec uint32 = 60 * 60 * 24 * 28
Variables ¶
View Source
var CliConfig = NewStoreConfig()
Functions ¶
func ConfigProcess ¶
func ConfigProcess(schemaMaxChunkSpan uint32)
func ConfigSetup ¶
func ConfigSetup()
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(cfg *StoreConfig, ttls []uint32, schemaMaxChunkSpan uint32) (*Store, error)
func (*Store) Add ¶
func (s *Store) Add(cwr *mdata.ChunkWriteRequest)
func (*Store) Search ¶
func (s *Store) Search(ctx context.Context, key schema.AMKey, ttl, start, end uint32) ([]chunk.IterGen, error)
Basic search of bigtable for data chunks start inclusive, end exclusive
func (*Store) SetTracer ¶
func (s *Store) SetTracer(t opentracing.Tracer)
type StoreConfig ¶
type StoreConfig struct { Enabled bool GcpProject string BigtableInstance string TableName string WriteQueueSize int WriteMaxFlushSize int WriteConcurrency int ReadConcurrency int MaxChunkSpan time.Duration ReadTimeout time.Duration WriteTimeout time.Duration CreateCF bool }
func NewStoreConfig ¶
func NewStoreConfig() *StoreConfig
return StoreConfig with default values set.
func (*StoreConfig) Validate ¶
func (cfg *StoreConfig) Validate(schemaMaxChunkSpan uint32) error
Click to show internal directories.
Click to hide internal directories.