Versions in this module Expand all Collapse all v0 v0.0.2 Nov 4, 2024 v0.0.1 Nov 4, 2024 Changes in this version + type ClickHouse struct + DSN string + Params map[string]string + QueryLog struct{ ... } + type Config struct + ClickHouse ClickHouse + Debug struct{ ... } + Insert struct{ ... } + Logging zap.Config + OverrideInsert []struct{ ... } + OverrideSamples []struct{ ... } + OverrideSeries []struct{ ... } + Prometheus struct{ ... } + Select struct{ ... } + func LoadFromFile(filename string, development bool) (*Config, error) + func (cfg *Config) GetInsert(values *EnvInsert) (ConfigInsert, error) + func (cfg *Config) GetSamples(values *EnvSamples) (ConfigSamples, error) + func (cfg *Config) GetSeries(values *EnvSeries) (ConfigSeries, error) + type ConfigInsert struct + ClickHouse *ClickHouse + IDFunc string + Table string + type ConfigSamples struct + ClickHouse *ClickHouse + SamplesTimestampUInt32 bool + Table string + type ConfigSeries struct + AutocompleteLookback time.Duration + ClickHouse *ClickHouse + SeriesMaterializedLabels []string + SeriesPartitionMs int64 + Table string + type ConfigWhen struct + WhenExpr *vm.Program + WhenStr string + func (w *ConfigWhen) Pass() bool + func (w *ConfigWhen) When(env any) (bool, error) + type EnvInsert struct + GetParams map[string]string + Headers map[string]string + func NewEnvInsert() *EnvInsert + func (env *EnvInsert) WithRequest(r *http.Request) *EnvInsert + type EnvQueryLog struct + ElapsedMs int64 + Kind string + Query string + type EnvSamples EnvSeries + func NewEnvSamples() *EnvSamples + type EnvSeries struct + By bool + DisableTrimming bool + End int64 + Func string + Grouping []string + Limit int + Range int64 + ShardCount uint64 + ShardIndex uint64 + Start int64 + Step int64 + func NewEnvSeries() *EnvSeries