config

package
v0.0.0-...-17c607b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickHouseConfig

type ClickHouseConfig struct {
	Hosts    []string `yaml:"hosts"`
	Username string   `yaml:"username"`
	Password string   `yaml:"password"`
	Database string   `yaml:"database"`
}

type KafkaConfig

type KafkaConfig struct {
	GroupId          string           `yaml:"groupId"`
	ResetPosition    string           `yaml:"resetPosition"`
	SecurityProtocol string           `yaml:"securityProtocol"`
	BootstrapServers []string         `yaml:"bootstrapServers"`
	Topics           []string         `yaml:"topics"`
	Sasl             *KafkaSaslConfig `yaml:"sasl,omitempty"`
}

type KafkaSaslConfig

type KafkaSaslConfig struct {
	Username  string `yaml:"username"`
	Password  string `yaml:"password"`
	Mechanism string `yaml:"mechanism"`
}

type SampledConfig

type SampledConfig struct {
	Store  StoreConfig  `yaml:"store"`
	Kafka  KafkaConfig  `yaml:"kafka"`
	Tuning TuningConfig `yaml:"tuning"`
}

func LoadConfig

func LoadConfig(filePath string) (*SampledConfig, error)

type StoreConfig

type StoreConfig struct {
	ClickHouse ClickHouseConfig `yaml:"clickhouse"`
}

type TuningConfig

type TuningConfig struct {
	FlushInterval    time.Duration `yaml:"flushInterval"`
	SampleBufferSize int64         `yaml:"sampleBufferSize"`
}

Jump to

Keyboard shortcuts

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