Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Main *MainConfig MySQL *MySqlConfig PositionSaver *PosAutoSaverConfig HealthChecker *HealthCheckerConfig AuditLog *AuditLogHandlerConfig Kafka *KafkaConfig ClickHouse *ClickHouseConfig )
Functions ¶
func FindConfigPath ¶
func InitConfig ¶
Types ¶
type AuditLogHandlerConfig ¶
type AuditLogHandlerConfig struct {
HandleTables []string `toml:"handle_tables"`
}
type ClickHouseConfig ¶
type HealthCheckerConfig ¶
type KafkaConfig ¶
type KafkaConfig struct { Addrs []string `toml:"addrs"` BinlogTopic string `toml:"binlog_topic"` TxInfoTopic string `toml:"tx_info_topic"` OffsetStoreDir string `toml:"offset_store_dir"` Offset *int64 `toml:"offsetStore"` // if it has no offset, set nil UseOldestOffset bool `toml:"use_oldest_offset"` }
type MainConfig ¶
type MainConfig struct { Log *LogConfig `toml:"log"` Mysql *MySqlConfig `toml:"mysql"` PositionSaver *PosAutoSaverConfig `toml:"position_saver"` HealthChecker *HealthCheckerConfig `toml:"health_checker"` AuditLog *AuditLogHandlerConfig `toml:"audit_log"` Kafka *KafkaConfig `toml:"kafka"` ClickHouse *ClickHouseConfig `toml:"clickhouse"` }
type MySqlConfig ¶
type MySqlConfig struct { Driver string `toml:"driver"` Host string `toml:"host"` Port int64 `toml:"port"` User string `toml:"user"` Password string `toml:"password"` Schemas []string `toml:"schemas"` DbMaxIdle int `toml:"db_max_idle"` DbMaxOpen int `toml:"db_max_open"` DbConnMaxLifeTime int `toml:"db_conn_max_life_time"` }
type PosAutoSaverConfig ¶
Click to show internal directories.
Click to hide internal directories.