bigtable

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0 Imports: 20 Imported by: 0

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)

func (*Store) Stop

func (s *Store) Stop()

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL