Documentation ¶
Overview ¶
Package utils Test tool
Index ¶
- Variables
- func DCMysql(etcdAddrs, mysqlAddrs []string) *mysqlconfig.ClusterConfiguration
- func DCRedis(etcdAddrs, redisAddrs []string) *redisconfig.Configuration
- func Start2MysqlMock(addrs []string)
- func Start2Proxy(addrs []string, proxys []string, mock proxy.MockType)
- func Start2RedisMock(addrs []string)
- func StartEtcdMock(addrs []string, dataDir string)
- func Stop2MysqlMock()
- func Stop2Proxy()
- func Stop2RedisMock()
- func StopEtcdMock(dataDir string)
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 Start2RedisMock ¶
func Start2RedisMock(addrs []string)
func StartEtcdMock ¶
func Stop2MysqlMock ¶
func Stop2MysqlMock()
func Stop2Proxy ¶
func Stop2Proxy()
func Stop2RedisMock ¶
func Stop2RedisMock()
func StopEtcdMock ¶
func StopEtcdMock(dataDir string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.