Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
App AppConfig `yaml:"app"`
Replication struct {
// ServerID is the unique ID of the replica in MySQL cluster.
// Omit this option if you'd like to auto generate ID.
ServerID *uint32 `yaml:"server_id"`
// GTIDMode indicates when to use GTID-based replication
// or binlog file position.
GTIDMode bool `yaml:"gtid_mode"`
// ConnectionSrc is the options to connect to MySQL.
ConnectionSrc SourceConnectConfig `yaml:"mysql"`
// ConnectionDest is the options to connect to Tarantool.
ConnectionDest DestConnectConfig `yaml:"tarantool"`
// Mappings contains rules to map data from MySQL to Tarantool.
Mappings []Mapping `yaml:"mappings"`
} `yaml:"replication"`
}
func ReadFromFile ¶
type DestConnectConfig ¶
type Health ¶ added in v1.0.1
type Health struct {
SecondsBehindMaster int `yaml:"seconds_behind_master"`
}
type Logging ¶
type Logging struct {
Level string `yaml:"level"`
SysLogEnabled bool `yaml:"syslog_enabled"`
FileLoggingEnabled bool `yaml:"file_enabled"`
Filename string `yaml:"file_name"`
MaxSize int `yaml:"file_max_size"` // megabytes
MaxBackups int `yaml:"file_max_backups"` // files
MaxAge int `yaml:"file_max_age"` // days
}
type SourceConnectConfig ¶
type SourceConnectConfig struct {
Dump struct {
// ExecPath is absolute path to mysqldump binary.
ExecPath string `yaml:"dump_exec_path"`
// SkipMasterData set true if you have no privilege to use `--master-data`.
SkipMasterData bool `yaml:"skip_master_data"`
// ExtraOptions for mysqldump CLI.
ExtraOptions []string `yaml:"extra_options"`
} `yaml:"dump"`
Addr string `yaml:"addr"`
User string `yaml:"user"`
Password string `yaml:"password"`
Charset string `yaml:"charset"`
}
Click to show internal directories.
Click to hide internal directories.