Documentation
¶
Index ¶
- func ConnectClickHouse() *sql.DB
- func GetStatus() string
- func InsertDataToClickHouse(data []interface{}, dbConfig config.DBConfig)
- func MySQLConnector(name string, host string, port int, user string, password string) (*sql.DB, error)
- func MySQLReplicationService(name string, host string, port int, user string, password string, ...) error
- func MySQLStartReplicator(name string, host string, port uint16, user string, password string) error
- func ReplicationInit(dbType string, dbConfig config.DBConfig) error
- func StartReplication(dbType string, dbAlias string)
- func StopReplication()
- type ReplicationService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectClickHouse ¶
func InsertDataToClickHouse ¶
func MySQLConnector ¶
func MySQLReplicationService ¶
func MySQLReplicationService(name string, host string, port int, user string, password string, dbName string, stop chan struct{}) error
Start starts the MySQL replication service.
func MySQLStartReplicator ¶
func ReplicationInit ¶
ReplicationService simulates replication service with database credentials
func StartReplication ¶
func StopReplication ¶
func StopReplication()
Types ¶
type ReplicationService ¶
ReplicationService is the interface for replication services.
Click to show internal directories.
Click to hide internal directories.