utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package utils Test tool

Index

Constants

This section is empty.

Variables

View Source
var (
	EtcdMock   *mock.MockEtcd
	MysqlMocks = make([]*mock.MysqlMock, 0)
	RedisMocks = make([]*mock.RedisMock, 0)
	Proxys     = make([]*proxy.Proxy, 0)
)

mock services

Functions

func DCMysql

func DCMysql(etcdAddrs, mysqlAddrs []string) *mysqlconfig.ClusterConfiguration

func DCRedis

func DCRedis(etcdAddrs, redisAddrs []string) *redisconfig.Configuration

func Start2MysqlMock

func Start2MysqlMock(addrs []string)

func Start2Proxy

func Start2Proxy(addrs []string, proxys []string, mock proxy.MockType)

func Start2RedisMock

func Start2RedisMock(addrs []string)

func StartEtcdMock

func StartEtcdMock(addrs []string, dataDir string)

func Stop2MysqlMock

func Stop2MysqlMock()

func Stop2Proxy

func Stop2Proxy()

func Stop2RedisMock

func Stop2RedisMock()

func StopEtcdMock

func StopEtcdMock(dataDir string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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