Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(cfg PadderConfig) error
Types ¶
type Config ¶
type Config struct { *flag.FlagSet `json:"-"` Log logutil.LogConfig `toml:"log" json:"log"` ConfigFile string `toml:"-" json:"-"` PadderConfig PadderConfig `toml:"padder" json:"padder"` Version bool PreviewMode bool }
func CreateConfigFromString ¶
func (*Config) CreateConfigFromFile ¶
type MySQLConfig ¶
type MySQLConfig struct { Target *utils.DBConfig `toml:"target" json:"target"` StartPosition *utils.MySQLBinlogPosition `toml:"start-position" json:"start-position"` }
type PadderConfig ¶
type PadderConfig struct { BinLogList []string `toml:"binlog-list" json:"binlog-list"` MySQLConfig *MySQLConfig `toml:"mysql" json:"mysql"` EnableDelete bool `toml:"enable-delete" json:"enable-delete"` }
Click to show internal directories.
Click to hide internal directories.