Versions in this module Expand all Collapse all v0 v0.2.7 Dec 9, 2021 v0.2.6 Nov 29, 2021 Changes in this version + func Bind(v *viper.Viper) + func SetDefaults(v *viper.Viper) + type Column struct + Generator *Generator + Name string + Type *string + func (c *Column) Validate() error + type Config struct + Database string + Instance string + MaxExecutionTime time.Duration + NumConns int + Operations Operations + Pool Pool + Project string + Tables []Table + Threads int + func NewConfig(v *viper.Viper) (*Config, error) + func (c *Config) Client(ctx context.Context) (*spanner.Client, error) + func (c *Config) Context() (context.Context, context.CancelFunc) + func (c *Config) DB() string + func (c *Config) Table(name string) *Table + func (c *Config) Validate() error + type GCSBConfig struct + Database string + Instance string + Project string + Tables []TableConfigTable + func NewGCSBConfigFromPath(configPath string) (*GCSBConfig, error) + func (c *GCSBConfig) DBName() string + func (c *GCSBConfig) GetCreateStatements() []string + func (c *GCSBConfig) ParentName() string + func (c *GCSBConfig) ReadConfig(configPath string) error + type Generator struct + Length *int + PrefixLength *int + Range []*Range + Seed *int64 + Type *string + func (g *Generator) Validate() error + type Operations struct + PartialKeys bool + Read int + ReadStale bool + SampleSize float64 + Staleness time.Duration + Total int + Write int + func (o *Operations) Validate() error + type Pool struct + HealthcheckInterval time.Duration + HealthcheckWorkers int + MaxIdle int + MaxOpened int + MinOpened int + TrackSessionHandles bool + WriteSessions float64 + func (c *Pool) Validate() error + type Range struct + Begin *interface{} + End *interface{} + Length *int + Maximum *interface{} + Minimum *interface{} + Static *bool + Value *interface{} + func (r *Range) Validate() error + type Table struct + Columns []Column + Name string + func (t *Table) Column(name string) *Column + func (t *Table) Validate() error + type TableConfigColumn struct + Generator TableConfigGenerator + Name string + Type string + type TableConfigGenerator struct + KeyRange TableConfigGeneratorRange + Length int + Max int + Min int + PrefixLength int + Range bool + Threads int + Type string + type TableConfigGeneratorRange struct + End string + Start string + type TableConfigOperations struct + Read uint + Write uint + type TableConfigTable struct + Columns []TableConfigColumn + Name string + Operations TableConfigOperations + PrimaryKey string + RowCount int + func (c *TableConfigTable) GetColumnNamesString() string + func (c *TableConfigTable) GetCreateStatement() string + type Validate interface + Validate func() error v0.2.5 Nov 4, 2021 v0.2.4 Nov 3, 2021 v0.2.3 Nov 3, 2021 v0.2.2 Nov 2, 2021 v0.2.1 Nov 2, 2021 v0.2.0 Nov 1, 2021 v0.1.1 Oct 28, 2021 v0.1.0 Oct 28, 2021