replication

package
v0.0.0-...-7fc8aac Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectClickHouse

func ConnectClickHouse() *sql.DB

func GetStatus

func GetStatus() string

func InsertDataToClickHouse

func InsertDataToClickHouse(data []interface{}, dbConfig config.DBConfig)

func MySQLConnector

func MySQLConnector(name string, host string, port int, user string, password string) (*sql.DB, error)

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 MySQLStartReplicator(name string, host string, port uint16, user string, password string) error

func ReplicationInit

func ReplicationInit(dbType string, dbConfig config.DBConfig) error

ReplicationService simulates replication service with database credentials

func StartReplication

func StartReplication(dbType string, dbAlias string)

func StopReplication

func StopReplication()

Types

type ReplicationService

type ReplicationService interface {
	Start() error
	Stop() error
}

ReplicationService is the interface for replication services.

Jump to

Keyboard shortcuts

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